Mass replace error_msg("%s", "literal") -> error_msg("literal")
There is no need to print literal strings through "%s".
Only untrusted strings such as filenames need that.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/util.c b/util.c
index 88798c0..354efef 100644
--- a/util.c
+++ b/util.c
@@ -808,9 +808,9 @@
else if (errno != EINVAL && errno != ESRCH)
/* EINVAL or ESRCH could be seen if process is gone,
* all the rest is strange and should be reported. */
- perror_msg("%s", "process_vm_readv");
+ perror_msg("process_vm_readv");
} else {
- perror_msg("process_vm_readv: short read (%d < %d)", r, len);
+ error_msg("process_vm_readv: short read (%d < %d)", r, len);
}
}
@@ -923,7 +923,7 @@
/* EINVAL or ESRCH could be seen
* if process is gone, all the rest
* is strange and should be reported. */
- perror_msg("%s", "process_vm_readv");
+ perror_msg("process_vm_readv");
goto vm_readv_didnt_work;
}
if (memchr(local[0].iov_base, '\0', r))