*: bb_error_msg's messages should not be capitalized

This commit is contained in:
Denis Vlasenko
2009-04-29 12:02:57 +00:00
parent 052ad9a568
commit 1fd3b38fd1
4 changed files with 12 additions and 12 deletions

View File

@@ -258,7 +258,7 @@ static void up_iface(void)
if (network_ioctl(SIOCGIFADDR, &ifrequest) < 0) {
bb_error_msg("can't get interface address");
} else if (ifrequest.ifr_addr.sa_family != AF_INET) {
bb_perror_msg("The interface is not IP-based");
bb_perror_msg("the interface is not IP-based");
} else {
((struct sockaddr_in*)(&ifrequest.ifr_addr))->sin_addr.s_addr = INADDR_ANY;
if (network_ioctl(SIOCSIFADDR, &ifrequest) < 0)
@@ -299,7 +299,7 @@ static void maybe_up_new_iface(void)
(uint8_t)(ifrequest.ifr_hwaddr.sa_data[5]));
}
bb_error_msg("Using interface %s%s with driver<%s> (version: %s)",
bb_error_msg("using interface %s%s with driver<%s> (version: %s)",
G.iface, buf, driver_info.driver, driver_info.version);
}
#endif

View File

@@ -284,12 +284,12 @@ static int print_qdisc(const struct sockaddr_nl *who UNUSED_PARAM,
char *name;
if (hdr->nlmsg_type != RTM_NEWQDISC && hdr->nlmsg_type != RTM_DELQDISC) {
/* bb_error_msg("Not a qdisc"); */
/* bb_error_msg("not a qdisc"); */
return 0; /* ??? mimic upstream; should perhaps return -1 */
}
len -= NLMSG_LENGTH(sizeof(*msg));
if (len < 0) {
/* bb_error_msg("Wrong len %d", len); */
/* bb_error_msg("wrong len %d", len); */
return -1;
}
/* not the desired interface? */
@@ -342,12 +342,12 @@ static int print_class(const struct sockaddr_nl *who UNUSED_PARAM,
/*XXX Eventually factor out common code */
if (hdr->nlmsg_type != RTM_NEWTCLASS && hdr->nlmsg_type != RTM_DELTCLASS) {
/* bb_error_msg("Not a class"); */
/* bb_error_msg("not a class"); */
return 0; /* ??? mimic upstream; should perhaps return -1 */
}
len -= NLMSG_LENGTH(sizeof(*msg));
if (len < 0) {
/* bb_error_msg("Wrong len %d", len); */
/* bb_error_msg("wrong len %d", len); */
return -1;
}
/* not the desired interface? */