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:
a8068f3
)
parse_monitor: replace printf printf_P
author
Fabrice Desclaux
<serpilliere@droids-corp.org>
Tue, 21 Feb 2012 18:29:41 +0000
(19:29 +0100)
committer
Fabrice Desclaux
<serpilliere@droids-corp.org>
Tue, 21 Feb 2012 18:29:41 +0000
(19:29 +0100)
parse_monitor.c
patch
|
blob
|
history
diff --git
a/parse_monitor.c
b/parse_monitor.c
index
8f684fb
..
80e8570
100644
(file)
--- a/
parse_monitor.c
+++ b/
parse_monitor.c
@@
-95,7
+95,7
@@
complete_get_elt_monitor(parse_pgm_token_hdr_t *tk, int8_t idx,
if (m == NULL)
return -1;
- len = snprintf
(dstbuf, size, "%S"
, m->desc);
+ len = snprintf
_P(dstbuf, size, PSTR("%S")
, m->desc);
if (len < 0 || len >= size)
return -1;
@@
-107,7
+107,7
@@
static int8_t
help_monitor(parse_pgm_token_hdr_t *tk, char *dstbuf,
uint8_t size)
{
- snprintf
(dstbuf, size, "Monitor-register"
);
+ snprintf
_P(dstbuf, size, PSTR("Monitor-register")
);
return 0;
}