From a851118fe634bbb4ef53940ca474ee1e5724454a Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 1 Aug 2010 19:12:34 +0000 Subject: [PATCH] Avoid that /sys/module/ib_srpt/parameters/srpt_service_guid contains a double newline. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1902 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 4c0f99ffa..05d35486c 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -144,7 +144,7 @@ MODULE_PARM_DESC(use_port_guid_in_session_name, static int srpt_get_u64_x(char *buffer, struct kernel_param *kp) { - return sprintf(buffer, "0x%016llx\n", *(u64 *)kp->arg); + return sprintf(buffer, "0x%016llx", *(u64 *)kp->arg); } module_param_call(srpt_service_guid, NULL, srpt_get_u64_x, &srpt_service_guid, 0444);