From 6f050f1cdb7b826d94e6c1a9065d400b1c0c1fef Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 13 Jan 2012 13:55:36 -0500 Subject: infiniband: fix up new warning message This causes a build warning (since the string isn't const), and the message lacks a new line. Fix both in one go. Signed-off-by: Mike Frysinger --- lib/ib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ib.c b/lib/ib.c index 3684e43..1eeb7f0 100644 --- a/lib/ib.c +++ b/lib/ib.c @@ -47,8 +47,7 @@ static const char *pr_ib(const char *ptr) pos += sprintf(pos, "%02X:", (*ptr++ & 0377)); } buff[strlen(buff) - 1] = '\0'; - char *ib_warning = "Infiniband hardware address can be incorrect! Please read BUGS section in ifconfig(8)."; - fprintf(stderr, _(ib_warning)); + fprintf(stderr, _("Infiniband hardware address can be incorrect! Please read BUGS section in ifconfig(8).\n")); /* snprintf(buff, sizeof(buff), "%02X:%02X:%02X:%02X:%02X:%02X", (ptr[0] & 0377), (ptr[1] & 0377), (ptr[2] & 0377), (ptr[3] & 0377), (ptr[4] & 0377), (ptr[5] & 0377) -- cgit v1.2.3