]> git.droids-corp.org - protos/xbee-avr.git/commitdiff
parse_monitor: replace printf printf_P
authorFabrice Desclaux <serpilliere@droids-corp.org>
Tue, 21 Feb 2012 18:29:41 +0000 (19:29 +0100)
committerFabrice Desclaux <serpilliere@droids-corp.org>
Tue, 21 Feb 2012 18:29:41 +0000 (19:29 +0100)
parse_monitor.c

index 8f684fb5a88259d397d95ae8dfa9582740dcc1c8..80e85700303abef497df713bd1c26a4117af5a62 100644 (file)
@@ -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;
 }