ndt-dev - [ndt] r305 committed - More bug fixes....
Subject: NDT-DEV email list created
List archive
- From:
- To:
- Subject: [ndt] r305 committed - More bug fixes....
- Date: Sun, 28 Feb 2010 20:05:24 +0000
Revision: 305
Author: rcarlson501
Date: Sun Feb 28 12:04:47 2010
Log: More bug fixes.
changed exit() call to return -1 in err_sys() function. This funcion is called
by the main web100srv process and it shouldn't exit!
Changed logging level for web100 data text, reduces the amount of text in the
debug log file.
RAC 2/28/10
http://code.google.com/p/ndt/source/detail?r=305
Modified:
/trunk/src/utils.c
/trunk/src/web100-util.c
=======================================
--- /trunk/src/utils.c Wed Jan 13 17:24:05 2010
+++ /trunk/src/utils.c Sun Feb 28 12:04:47 2010
@@ -135,7 +135,7 @@
err_sys(char* s)
{
perror(s);
- exit(1);
+ return -1;
}
/*
=======================================
--- /trunk/src/web100-util.c Tue Feb 9 17:30:07 2010
+++ /trunk/src/web100-util.c Sun Feb 28 12:04:47 2010
@@ -205,7 +205,7 @@
}
if ((web100_raw_read(var, cn, buf)) != WEB100_ERR_SUCCESS) {
- if (get_debuglvl() > 1)
+ if (get_debuglvl() > 9)
web100_perror("web100_raw_read()");
continue;
}
@@ -213,7 +213,7 @@
sprintf(web_vars[i].value, "%s", web100_value_to_text(web100_get_var_type(var), buf));
if (fp)
fprintf(fp, "%d;", (int32_t)atoi(web_vars[i].value));
- log_println(6, "%s: %d", web_vars[i].name, atoi(web_vars[i].value));
+ log_println(9, "%s: %d", web_vars[i].name, atoi(web_vars[i].value));
}
ok = 1;
}
@@ -249,7 +249,7 @@
}
if ((web100_snap_read(var, snap, buf)) != WEB100_ERR_SUCCESS) {
- if (get_debuglvl() > 4) {
+ if (get_debuglvl() > 9) {
log_print(9, "Variable %d (%s): ", i, web_vars[i].name);
web100_perror("web100_snap_read()");
}
- [ndt] r305 committed - More bug fixes...., ndt, 02/28/2010
Archive powered by MHonArc 2.6.16.