Fix build issues when -DDEBUG is enabled

The call to "fprint()" is a typo and should be "fprintf()".

Also, the "error->message" string is an artifact from the time when
telemetrics-client used glib. Now it uses libnica, which propogates
errors differently. Simply remove the format specifier for now.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
Patrick McCarty
2017-09-29 15:12:03 -07:00
committed by ajch
parent 85772cb5c5
commit 1517ff4c18
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -91,8 +91,7 @@ bool read_config_from_file(char *config_file, struct configuration *config)
keyfile = nc_ini_file_parse(config_file);
if (!keyfile) {
#ifdef DEBUG
fprintf(stderr, "ERR: Failed to read config file: %s\n",
error->message);
fprintf(stderr, "ERR: Failed to read config file\n");
#endif
return false;
} else {
+1 -1
View File
@@ -448,7 +448,7 @@ static int set_cpu_model_header(struct telem_ref *t_ref)
} else {
#ifdef DEBUG
fprint(stderr, "NOTICE: Unable to open /proc/cpuinfo\n");
fprintf(stderr, "NOTICE: Unable to open /proc/cpuinfo\n");
#endif
status = -1;
}