mirror of
https://github.com/clearlinux/telemetrics-client.git
synced 2026-11-25 09:54:53 +00:00
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:
+1
-2
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user