git.droids-corp.org
/
protos
/
xbee-avr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
parse_neighbor: replace printf printf_P
[protos/xbee-avr.git]
/
parse_neighbor.c
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;
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;
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)
{
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;
}
return 0;
}