diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-01-13 13:55:36 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-01-23 20:07:07 -0500 |
commit | 6f050f1cdb7b826d94e6c1a9065d400b1c0c1fef (patch) | |
tree | d0477a3071222a4d400bd9b0a007c2b0b1a7bd15 | |
parent | 718258492afefd59527e52379c55e18676cfaf83 (diff) | |
download | net-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) |