Commit 9026eba4 authored by Adam Wujek's avatar Adam Wujek

snmp: add quotas around commands' printouts

Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent b34b11ef
......@@ -538,8 +538,8 @@ static void get_daemons_status(void)
f = popen(PROCESS_COMMAND, "r");
if (!f) {
snmp_log(LOG_ERR, "SNMP: " SL_ER
" wrsBootUserspaceDaemonsMissing: failed to execute "
PROCESS_COMMAND "\n");
" wrsBootUserspaceDaemonsMissing: failed to execute \""
PROCESS_COMMAND "\"\n");
wrsBootStatus_s.wrsBootUserspaceDaemonsMissing = 0;
/* Notify snmp about error in processes list */
/* Count number of expected processes */
......@@ -615,7 +615,7 @@ static void get_n_watchdog_timouts(void)
f = popen(WDOG_COMMAND, "r");
if (!f) {
snmp_log(LOG_ERR, "SNMP: " SL_ER " wrsGwWatchdogTimeouts: "
"failed to execute " WDOG_COMMAND "\n");
"failed to execute \"" WDOG_COMMAND "\"\n");
return;
}
......
......@@ -56,8 +56,8 @@ time_t wrsDiskTable_data_fill(unsigned int *ret_n_rows)
f = popen(DISKUSAGE_COMMAND, "r");
if (!f) {
snmp_log(LOG_ERR, "SNMP: " SL_ER " wrsDiskTable filed to execute "
DISKUSAGE_COMMAND"\n");
snmp_log(LOG_ERR, "SNMP: " SL_ER " wrsDiskTable failed to execute \""
DISKUSAGE_COMMAND"\"\n");
return time_cur;
}
/* skip first line with columns' descriptions */
......
......@@ -94,8 +94,8 @@ time_t wrsVersion_data_fill(void)
f = popen(VERSION_COMMAND, "r");
if (!f) {
snmp_log(LOG_ERR, "SNMP: " SL_ER " wrsVersion filed to execute "
VERSION_COMMAND"\n");
snmp_log(LOG_ERR, "SNMP: " SL_ER " wrsVersion failed to execute \""
VERSION_COMMAND"\"\n");
/* try again next time */
run_once = 0;
return time_cur;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment