git.droids-corp.org
/
protos
/
xbee-avr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a359312
)
parse_neighbor: replace printf printf_P
author
Fabrice Desclaux
<serpilliere@droids-corp.org>
Tue, 21 Feb 2012 18:28:43 +0000
(19:28 +0100)
committer
Fabrice Desclaux
<serpilliere@droids-corp.org>
Tue, 21 Feb 2012 18:28:43 +0000
(19:28 +0100)
parse_neighbor.c
patch
|
blob
|
history
diff --git
a/parse_neighbor.c
b/parse_neighbor.c
index
0285b03
..
3faa0c7
100644
(file)
--- a/
parse_neighbor.c
+++ b/
parse_neighbor.c
@@
-114,7
+114,7
@@
complete_get_elt_neighbor(parse_pgm_token_hdr_t *tk, int8_t idx,
if (neigh == NULL)
return -1;
- len = snprintf
(dstbuf, size, "%s"
, neigh->name);
+ len = snprintf
_P(dstbuf, size, PSTR("%s")
, neigh->name);
if (len < 0 || len >= size)
return -1;
@@
-126,7
+126,7
@@
static int8_t
help_neighbor(parse_pgm_token_hdr_t *tk, char *dstbuf,
uint8_t size)
{
- snprintf
(dstbuf, size, "Neighbor"
);
+ snprintf
_P(dstbuf, size, PSTR("Neighbor")
);
return 0;
}