s390utils/s390-tools-1.29.0-format.patch

34 lines
1.2 KiB
Diff

diff -up s390-tools-1.29.0/cpacfstats/cpacfstatsd.c.format s390-tools-1.29.0/cpacfstats/cpacfstatsd.c
--- s390-tools-1.29.0/cpacfstats/cpacfstatsd.c.format 2015-06-23 04:52:38.141420401 -0400
+++ s390-tools-1.29.0/cpacfstats/cpacfstatsd.c 2015-06-23 04:53:01.271420401 -0400
@@ -348,7 +348,7 @@ int eprint(const char *format, ...)
if (n > 0) {
if (daemonized)
- syslog(LOG_WARNING, buf);
+ syslog(LOG_WARNING, "%s", buf);
else
fputs(buf, stderr);
}
diff -up s390-tools-1.29.0/tape390/tape390_display.c.format s390-tools-1.29.0/tape390/tape390_display.c
--- s390-tools-1.29.0/tape390/tape390_display.c.format 2015-05-13 05:17:55.000000000 -0400
+++ s390-tools-1.29.0/tape390/tape390_display.c 2015-06-23 04:50:24.061420401 -0400
@@ -175,7 +175,7 @@ int main(int argc, char *argv[]) {
) {
switch(c) {
case 'h':
- fprintf(stderr, help_text);
+ fprintf(stderr, "%s", help_text);
exit(0);
case 'b':
ds.cntrl.blink = 1;
@@ -266,7 +266,7 @@ int main(int argc, char *argv[]) {
strchkcpy(ds.message1, argv[optind]);
pathname = argv[optind+1];
} else {
- fprintf(stderr, help_text);
+ fprintf(stderr, "%s", help_text);
exit(1);
}