diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/messages.c | 3 | ||||
-rw-r--r-- | libbb/xfuncs_printf.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/libbb/messages.c b/libbb/messages.c index 90090283c..1d0e58720 100644 --- a/libbb/messages.c +++ b/libbb/messages.c @@ -28,7 +28,8 @@ const char bb_msg_write_error[] ALIGN1 = "write error"; const char bb_msg_read_error[] ALIGN1 = "read error"; const char bb_msg_unknown[] ALIGN1 = "(unknown)"; const char bb_msg_can_not_create_raw_socket[] ALIGN1 = "can't create raw socket"; -const char bb_msg_perm_denied_are_you_root[] ALIGN1 = "permission denied. (are you root?)"; +const char bb_msg_perm_denied_are_you_root[] ALIGN1 = "permission denied (are you root?)"; +const char bb_msg_you_must_be_root[] ALIGN1 = "you must be root"; const char bb_msg_requires_arg[] ALIGN1 = "%s requires an argument"; const char bb_msg_invalid_arg[] ALIGN1 = "invalid argument '%s' to '%s'"; const char bb_msg_standard_input[] ALIGN1 = "standard input"; diff --git a/libbb/xfuncs_printf.c b/libbb/xfuncs_printf.c index 644134a0e..d36284131 100644 --- a/libbb/xfuncs_printf.c +++ b/libbb/xfuncs_printf.c @@ -388,7 +388,7 @@ int FAST_FUNC xsocket(int domain, int type, int protocol) if (domain == AF_PACKET) s = "PACKET"; if (domain == AF_NETLINK) s = "NETLINK"; IF_FEATURE_IPV6(if (domain == AF_INET6) s = "INET6";) - bb_perror_msg_and_die("socket(AF_%s)", s); + bb_perror_msg_and_die("socket(AF_%s,%d,%d)", s, type, protocol); #else bb_perror_msg_and_die("socket"); #endif |