From: Fabrice Desclaux Date: Tue, 21 Feb 2012 18:29:41 +0000 (+0100) Subject: parse_monitor: replace printf printf_P X-Git-Url: http://git.droids-corp.org/?p=protos%2Fxbee-avr.git;a=commitdiff_plain;h=3904f928fa883b8dbeebb9bf19095b1a0a7efe8e parse_monitor: replace printf printf_P --- diff --git a/parse_monitor.c b/parse_monitor.c index 8f684fb..80e8570 100644 --- 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; }