diff options
Diffstat (limited to 'src/gsmd/machine.c')
-rw-r--r-- | src/gsmd/machine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gsmd/machine.c b/src/gsmd/machine.c index 0909928..33551b2 100644 --- a/src/gsmd/machine.c +++ b/src/gsmd/machine.c @@ -117,7 +117,7 @@ int gsmd_machine_plugin_init(struct gsmd *g, char *machine_name, char *vendor_na buf[sizeof(buf)-1] = '\0'; line = strtok(buf, "\n"); - while (line = strtok(NULL, "\n")) { + while ((line = strtok(NULL, "\n"))) { if (strncmp(line, "Hardware\t: ", 11) == 0) { hw = line+11; break; @@ -138,7 +138,7 @@ int gsmd_machine_plugin_init(struct gsmd *g, char *machine_name, char *vendor_na if (vendor_name) DEBUGP("wanring: auto-detected vendor '%s', " - "but user override to '%s'\m", + "but user override to '%s'\n", machines[i].vendor, vendor_name); else vendor_name = machines[i].vendor; |