summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraiz <raiz@firemail.cc>2016-12-27 19:07:19 +0300
committerraiz <raiz@firemail.cc>2016-12-27 19:07:19 +0300
commit6cab2d57199edd8cc9e292ded04558fe9279962b (patch)
tree7e361fd29a08f0911f946ba8cbb8b625ce9a43d2
parente1c5476291cf35693c072327cc5a0261983e1573 (diff)
remove newlines from warn() in swap_*(), those functions already print a newline after printing string stderr
-rw-r--r--slstatus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/slstatus.c b/slstatus.c
index b593765..e6e726e 100644
--- a/slstatus.c
+++ b/slstatus.c
@@ -443,7 +443,7 @@ swap_free(void)
buf[bytes_read] = '\0';
fclose(fp);
if (bytes_read == 0 || bytes_read == sizeof(buf)) {
- warn("Failed to read /proc/meminfo\n");
+ warn("Failed to read from /proc/meminfo");
return smprintf(UNKNOWN_STR);
}
@@ -477,7 +477,7 @@ swap_perc(void)
buf[bytes_read] = '\0';
fclose(fp);
if (bytes_read == 0 || bytes_read == sizeof(buf)) {
- warn("Failed to read /proc/meminfo\n");
+ warn("Failed to read from /proc/meminfo");
return smprintf(UNKNOWN_STR);
}
@@ -514,7 +514,7 @@ swap_total(void)
buf[bytes_read] = '\0';
fclose(fp);
if (bytes_read == 0 || bytes_read == sizeof(buf)) {
- warn("Failed to read /proc/meminfo\n");
+ warn("Failed to read from /proc/meminfo");
return smprintf(UNKNOWN_STR);
}
@@ -545,7 +545,7 @@ swap_used(void)
buf[bytes_read] = '\0';
fclose(fp);
if (bytes_read == 0 || bytes_read == sizeof(buf)) {
- warn("Failed to read /proc/meminfo\n");
+ warn("Failed to read from /proc/meminfo");
return smprintf(UNKNOWN_STR);
}