all repos — slstatus @ 6cab2d57199edd8cc9e292ded04558fe9279962b

my build of slstatus (tools.suckless.org/slstatus/)

remove newlines from warn() in swap_*(), those functions already print a newline after printing string stderr
raiz raiz@firemail.cc
Tue, 27 Dec 2016 19:07:19 +0300
commit

6cab2d57199edd8cc9e292ded04558fe9279962b

parent

e1c5476291cf35693c072327cc5a0261983e1573

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M slstatus.cslstatus.c

@@ -443,7 +443,7 @@ bytes_read = fread(buf, sizeof(char), sizeof(buf), fp);

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 @@ bytes_read = fread(buf, sizeof(char), sizeof(buf), fp);

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 @@ bytes_read = fread(buf, sizeof(char), sizeof(buf), fp);

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 @@ bytes_read = fread(buf, sizeof(char), sizeof(buf), fp);

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); }