From 3904f928fa883b8dbeebb9bf19095b1a0a7efe8e Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Tue, 21 Feb 2012 19:29:41 +0100 Subject: [PATCH] parse_monitor: replace printf printf_P --- parse_monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5