summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-01-13 13:55:36 -0500
committerMike Frysinger <vapier@gentoo.org>2012-01-23 20:07:07 -0500
commit6f050f1cdb7b826d94e6c1a9065d400b1c0c1fef (patch)
treed0477a3071222a4d400bd9b0a007c2b0b1a7bd15
parent718258492afefd59527e52379c55e18676cfaf83 (diff)
downloadnet-tools-6f050f1cdb7b826d94e6c1a9065d400b1c0c1fef.tar.gz
net-tools-6f050f1cdb7b826d94e6c1a9065d400b1c0c1fef.tar.bz2
net-tools-6f050f1cdb7b826d94e6c1a9065d400b1c0c1fef.zip
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 <vapier@gentoo.org>
-rw-r--r--lib/ib.c3
1 files changed, 1 insertions, 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)