From: Michael Meffie Date: Tue, 13 Sep 2016 02:21:59 +0000 (-0400) Subject: afsd: print syscalls on separate lines with afsd -debug X-Git-Tag: upstream/1.8.0_pre2^3~72 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=481047d2a2660609091dc04253d136f527469ceb;p=packages%2Fo%2Fopenafs.git afsd: print syscalls on separate lines with afsd -debug afsd prints information to standard out for testing and debugging when the -debug option is given. However, syscall tracing is emitted without trailing newlines on all platforms except netbsd, creating an unreadable wall of text. # afsd -debug ... afsd: Forking 4 background daemons. SScall(183, 28, 0)=0 183, 28, 6583200)=0 SScall(183, 28, 6583 200)=0 SScall(183, 28, 6583200)=0 SScall(183, 28, 6583200)=0 S Scall(183, 28, 6583200)=0 SScall(183, 28, 6583200)=0 SScall(18 ... Make the syscall call tracing usable by printing each one on a separate line. # afsd -deubg ... afsd: Forking 4 background daemons. SScall(183, 28, 0)=0 183, 28, 6583200)=0 SScall(183, 28, 6583200)=0 SScall(183, 28, 6583200)=0 ... Change-Id: Ic9208243c1e05352744fb6f575384e00d0e3e59c Reviewed-on: https://gerrit.openafs.org/12385 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- diff --git a/src/afsd/afsd_kernel.c b/src/afsd/afsd_kernel.c index 5799f3dd0..cc4c02bb0 100644 --- a/src/afsd/afsd_kernel.c +++ b/src/afsd/afsd_kernel.c @@ -279,7 +279,7 @@ afsd_call_syscall(struct afsd_syscall_args *args) printf("SScall(%d, %d, %d)=%d (%d, %s)\n", AFS_SYSCALL, AFSCALL_CALL, (int)args->params[0], error, errno, s); #else - printf("SScall(%d, %d, %d)=%d ", AFS_SYSCALL, AFSCALL_CALL, + printf("SScall(%d, %d, %d)=%d\n", AFS_SYSCALL, AFSCALL_CALL, (int)args->params[0], error); #endif }