Staging; lustre: Fix quoted string split across lines
This patch fixes the following checkpatch.pl issues in lnet/lnet/config.c: WARNING: quoted string split across lines Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
24edbe4fbf
commit
e46b3a0bd5
1 changed files with 14 additions and 14 deletions
|
@ -188,8 +188,8 @@ lnet_parse_networks(struct list_head *nilist, char *networks)
|
||||||
|
|
||||||
if (strlen(networks) > LNET_SINGLE_TEXTBUF_NOB) {
|
if (strlen(networks) > LNET_SINGLE_TEXTBUF_NOB) {
|
||||||
/* _WAY_ conservative */
|
/* _WAY_ conservative */
|
||||||
LCONSOLE_ERROR_MSG(0x112, "Can't parse networks: string too "
|
LCONSOLE_ERROR_MSG(0x112,
|
||||||
"long\n");
|
"Can't parse networks: string too long\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -255,8 +255,8 @@ lnet_parse_networks(struct list_head *nilist, char *networks)
|
||||||
net = libcfs_str2net(cfs_trimwhite(str));
|
net = libcfs_str2net(cfs_trimwhite(str));
|
||||||
|
|
||||||
if (net == LNET_NIDNET(LNET_NID_ANY)) {
|
if (net == LNET_NIDNET(LNET_NID_ANY)) {
|
||||||
LCONSOLE_ERROR_MSG(0x113, "Unrecognised network"
|
LCONSOLE_ERROR_MSG(0x113,
|
||||||
" type\n");
|
"Unrecognised network type\n");
|
||||||
tmp = str;
|
tmp = str;
|
||||||
goto failed_syntax;
|
goto failed_syntax;
|
||||||
}
|
}
|
||||||
|
@ -313,8 +313,8 @@ lnet_parse_networks(struct list_head *nilist, char *networks)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (niface == LNET_MAX_INTERFACES) {
|
if (niface == LNET_MAX_INTERFACES) {
|
||||||
LCONSOLE_ERROR_MSG(0x115, "Too many interfaces "
|
LCONSOLE_ERROR_MSG(0x115,
|
||||||
"for net %s\n",
|
"Too many interfaces for net %s\n",
|
||||||
libcfs_net2str(net));
|
libcfs_net2str(net));
|
||||||
goto failed;
|
goto failed;
|
||||||
}
|
}
|
||||||
|
@ -722,8 +722,7 @@ lnet_parse_route(char *str, int *im_a_router)
|
||||||
|
|
||||||
rc = lnet_add_route(net, hops, nid);
|
rc = lnet_add_route(net, hops, nid);
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
CERROR("Can't create route "
|
CERROR("Can't create route to %s via %s\n",
|
||||||
"to %s via %s\n",
|
|
||||||
libcfs_net2str(net),
|
libcfs_net2str(net),
|
||||||
libcfs_nid2str(nid));
|
libcfs_nid2str(nid));
|
||||||
goto out;
|
goto out;
|
||||||
|
@ -1156,14 +1155,15 @@ lnet_parse_ip2nets(char **networksp, char *ip2nets)
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
if (nip < 0) {
|
if (nip < 0) {
|
||||||
LCONSOLE_ERROR_MSG(0x117, "Error %d enumerating local IP "
|
LCONSOLE_ERROR_MSG(0x117,
|
||||||
"interfaces for ip2nets to match\n", nip);
|
"Error %d enumerating local IP interfaces for ip2nets to match\n",
|
||||||
|
nip);
|
||||||
return nip;
|
return nip;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nip == 0) {
|
if (nip == 0) {
|
||||||
LCONSOLE_ERROR_MSG(0x118, "No local IP interfaces "
|
LCONSOLE_ERROR_MSG(0x118,
|
||||||
"for ip2nets to match\n");
|
"No local IP interfaces for ip2nets to match\n");
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1176,8 +1176,8 @@ lnet_parse_ip2nets(char **networksp, char *ip2nets)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rc == 0) {
|
if (rc == 0) {
|
||||||
LCONSOLE_ERROR_MSG(0x11a, "ip2nets does not match "
|
LCONSOLE_ERROR_MSG(0x11a,
|
||||||
"any local IP interfaces\n");
|
"ip2nets does not match any local IP interfaces\n");
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue