diff options
author | Christophe Grenier <[email protected]> | 2009-04-12 11:47:38 +0200 |
---|---|---|
committer | Christophe Grenier <[email protected]> | 2009-04-12 11:47:38 +0200 |
commit | 062da3696d295e903d2e3e97d225c6794653b597 (patch) | |
tree | a668e83b0b7cbcb31015dc6e966da107c57640bd | |
parent | 47e322c3a82061300f833002edf1858472a9c661 (diff) |
Don't forget the string format when logging an error, patch from Pascal Terjan
-rw-r--r-- | src/intrf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intrf.c b/src/intrf.c index f6467576..0974fdb2 100644 --- a/src/intrf.c +++ b/src/intrf.c @@ -248,7 +248,7 @@ unsigned long long int ask_number_cli(char **current_cmd, const unsigned long lo va_list ap; va_start(ap,_format); vsnprintf(res,sizeof(res),_format,ap); - log_error(res); + log_error("%s", res); if(val_min!=val_max) log_error("(%llu-%llu) :",val_min,val_max); log_error("Invalid value\n"); |