Commit 6f050f1c authored by Mike Frysinger's avatar Mike Frysinger

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: default avatarMike Frysinger <vapier@gentoo.org>
parent 71825849
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment