From a940d1a60fe97c27b161d9dc178606bf57707993 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 20 Dec 2016 16:43:26 +0000 Subject: printstr: rename to printstrn, add printstr as a thin wrapper As about half of all printstr uses cases are invocations with the last argument set to -1, create a dedicated function for this use case. * defs.h (printstr): Rename to printstrn. All callers updated. (printstr): New static inline function. All callers updated. --- kexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kexec.c') diff --git a/kexec.c b/kexec.c index 4872ca5ba..a1f0ccbba 100644 --- a/kexec.c +++ b/kexec.c @@ -113,7 +113,7 @@ SYS_FUNC(kexec_file_load) /* cmdline_len */ tprintf("%" PRI_klu ", ", getarg_klu(tcp, 2)); /* cmdline */ - printstr(tcp, tcp->u_arg[3], tcp->u_arg[2]); + printstrn(tcp, tcp->u_arg[3], tcp->u_arg[2]); tprints(", "); /* flags */ printflags64(kexec_file_load_flags, getarg_klu(tcp, 4), "KEXEC_FILE_???"); -- cgit v1.2.1