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:
0f8cb36
)
nfctype1: Improve returned errors consistency
author
Wiktor Lawski
<wiktor.lawski@tieto.com>
Mon, 3 Sep 2012 09:57:26 +0000
(11:57 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 7 Sep 2012 15:08:35 +0000
(17:08 +0200)
Match returned error and message with Tag Type 2.
plugins/nfctype1.c
patch
|
blob
|
history
diff --git
a/plugins/nfctype1.c
b/plugins/nfctype1.c
index
52ed597
..
b1c1027
100644
(file)
--- a/
plugins/nfctype1.c
+++ b/
plugins/nfctype1.c
@@
-627,8
+627,8
@@
static int nfctype1_write(uint32_t adapter_idx, uint32_t target_idx,
* is TYPE1_STATIC_MAX_DATA_SIZE */
if (near_tag_get_memory_layout(tag) == NEAR_TAG_MEMORY_STATIC) {
if ((ndef->length + 3) > TYPE1_STATIC_MAX_DATA_SIZE) {
- near_error("not enough space on
data
");
- return -ENO
MEM
;
+ near_error("not enough space on
tag
");
+ return -ENO
SPC
;
}
}