brcm2708: update linux 4.4 patches to latest version
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0181-scripts-knlinfo-Decode-DDTK-atom.patch
1 From 5f1a77a98df6352d585a906a61166062cb43c14b Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Fri, 29 May 2015 11:18:58 +0100
4 Subject: [PATCH] scripts/knlinfo: Decode DDTK atom
5
6 Show the DDTK atom as being a boolean.
7
8 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
9 ---
10 scripts/knlinfo | 3 ++-
11 1 file changed, 2 insertions(+), 1 deletion(-)
12
13 --- a/scripts/knlinfo
14 +++ b/scripts/knlinfo
15 @@ -16,6 +16,7 @@ my $trailer_magic = 'RPTL';
16
17 my %atom_formats =
18 (
19 + 'DDTK' => \&format_bool,
20 'DTOK' => \&format_bool,
21 'KVer' => \&format_string,
22 '270X' => \&format_bool,
23 @@ -148,7 +149,7 @@ sub format_atom
24 sub format_bool
25 {
26 my ($data) = @_;
27 - return unpack('V', $data) ? 'true' : 'false';
28 + return unpack('V', $data) ? 'y' : 'n';
29 }
30
31 sub format_int