1 From 6aa589e510033a1876471f6aa0dbbd4626d46da3 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
6 Show the DDTK atom as being a boolean.
8 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
10 scripts/knlinfo | 3 ++-
11 1 file changed, 2 insertions(+), 1 deletion(-)
15 @@ -16,6 +16,7 @@ my $trailer_magic = 'RPTL';
19 + 'DDTK' => \&format_bool,
20 'DTOK' => \&format_bool,
21 'KVer' => \&format_string,
22 '270X' => \&format_bool,
23 @@ -148,7 +149,7 @@ sub format_atom
27 - return unpack('V', $data) ? 'true' : 'false';
28 + return unpack('V', $data) ? 'y' : 'n';