projects
/
platform
/
upstream
/
neard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efa0699
)
nfctool: sniffer: A record's TNF is not a boolean
author
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 13 Jun 2013 14:18:23 +0000
(16:18 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 13 Jun 2013 14:18:23 +0000
(16:18 +0200)
A record TNF (Type Name Format) is on 3 bits and thus should not be the
result of a boolean comparison.
tools/nfctool/ndef-decode.c
patch
|
blob
|
history
diff --git
a/tools/nfctool/ndef-decode.c
b/tools/nfctool/ndef-decode.c
index
f30d68c
..
8910f56
100644
(file)
--- a/
tools/nfctool/ndef-decode.c
+++ b/
tools/nfctool/ndef-decode.c
@@
-95,7
+95,7
@@
int ndef_print_records(guint8 *data, guint32 data_len)
cf = (record[0] & 0x20) != 0;
sr = (record[0] & 0x10) != 0;
il = (record[0] & 0x08) != 0;
- tnf = (record[0] & 0x07)
!= 0
;
+ tnf = (record[0] & 0x07);
type_len = record[1];