From: Chuck Lever Date: Thu, 5 Jan 2012 21:03:08 +0000 (-0500) Subject: mountd: remove newline from xlog() format specifier strings X-Git-Tag: nfs-utils-1-2-6-rc5~1 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=652f1c23dec57e139410ae62516d582216854531;p=nfs-utils.git mountd: remove newline from xlog() format specifier strings Clean up: xlog() already adds a newline to the end of each line of output. Remove the superfluous newline from a number of xlog() call sites in mountd. Signed-off-by: Steve Dickson --- diff --git a/utils/mountd/fsloc.c b/utils/mountd/fsloc.c index e2add2d..704b7a0 100644 --- a/utils/mountd/fsloc.c +++ b/utils/mountd/fsloc.c @@ -40,12 +40,12 @@ static void replicas_print(struct servers *sp) { int i; if (!sp) { - xlog(L_NOTICE, "NULL replicas pointer\n"); + xlog(L_NOTICE, "NULL replicas pointer"); return; } - xlog(L_NOTICE, "replicas listsize=%i\n", sp->h_num); + xlog(L_NOTICE, "replicas listsize=%i", sp->h_num); for (i=0; ih_num; i++) { - xlog(L_NOTICE, " %s:%s\n", + xlog(L_NOTICE, " %s:%s", sp->h_mp[i]->h_host, sp->h_mp[i]->h_path); } } @@ -125,13 +125,13 @@ static struct servers *method_list(char *data) int i, listsize; struct servers *rv=NULL; - xlog(L_NOTICE, "method_list(%s)\n", data); + xlog(L_NOTICE, "method_list(%s)", data); for (ptr--, listsize=1; ptr; ptr=index(ptr, ':'), listsize++) ptr++; list = malloc(listsize * sizeof(char *)); copy = strdup(data); if (copy) - xlog(L_NOTICE, "converted to %s\n", copy); + xlog(L_NOTICE, "converted to %s", copy); if (list && copy) { ptr = copy; for (i=0; i