Yet another silly little byte saving. couldn't -> cannot

This commit is contained in:
Denis Vlasenko 2006-09-29 21:30:43 +00:00
parent 6c30db8bd3
commit a959588b80
17 changed files with 33 additions and 33 deletions

View File

@ -119,13 +119,13 @@ int gunzip_main(int argc, char **argv)
check_header_gzip(src_fd); check_header_gzip(src_fd);
status = inflate_gunzip(src_fd, dst_fd); status = inflate_gunzip(src_fd, dst_fd);
if (status != 0) { if (status != 0) {
bb_error_msg_and_die("Error inflating"); bb_error_msg_and_die("error inflating");
} }
} else { } else {
bb_error_msg_and_die("Invalid magic"); bb_error_msg_and_die("invalid magic");
} }
} else { } else {
bb_error_msg_and_die("Invalid magic"); bb_error_msg_and_die("invalid magic");
} }
if ((status != EXIT_SUCCESS) && (new_path)) { if ((status != EXIT_SUCCESS) && (new_path)) {
@ -142,7 +142,7 @@ int gunzip_main(int argc, char **argv)
/* delete_path will be NULL if in test mode or from stdin */ /* delete_path will be NULL if in test mode or from stdin */
if (delete_path && (unlink(delete_path) == -1)) { if (delete_path && (unlink(delete_path) == -1)) {
bb_error_msg_and_die("Couldn't remove %s", delete_path); bb_error_msg_and_die("cannot remove %s", delete_path);
} }
free(new_path); free(new_path);

View File

@ -84,7 +84,7 @@ int uncompress_main(int argc, char **argv)
/* delete_path will be NULL if in test mode or from stdin */ /* delete_path will be NULL if in test mode or from stdin */
if (delete_path && (unlink(delete_path) == -1)) { if (delete_path && (unlink(delete_path) == -1)) {
bb_error_msg_and_die("Couldn't remove %s", delete_path); bb_error_msg_and_die("cannot remove %s", delete_path);
} }
free(uncompressed_file); free(uncompressed_file);

View File

@ -40,7 +40,7 @@ int unlzma_main(int argc, char **argv)
/* bug: char *extension = filename + strlen(filename) - 5; */ /* bug: char *extension = filename + strlen(filename) - 5; */
char *extension = strrchr(filename, '.'); char *extension = strrchr(filename, '.');
if (!extension || strcmp(extension, ".lzma") != 0) { if (!extension || strcmp(extension, ".lzma") != 0) {
bb_error_msg_and_die("Invalid extension"); bb_error_msg_and_die("invalid extension");
} }
xstat(filename, &stat_buf); xstat(filename, &stat_buf);
*extension = '\0'; *extension = '\0';
@ -53,7 +53,7 @@ int unlzma_main(int argc, char **argv)
if (!status) if (!status)
filename[strlen(filename)] = '.'; filename[strlen(filename)] = '.';
if (unlink(filename) < 0) { if (unlink(filename) < 0) {
bb_error_msg_and_die("Couldn't remove %s", filename); bb_error_msg_and_die("cannot remove %s", filename);
} }
} }

View File

@ -792,7 +792,7 @@ end_option:
} }
fdflags = fcntl(STDIN_FILENO, F_GETFL); fdflags = fcntl(STDIN_FILENO, F_GETFL);
if (fdflags == -1 || fcntl(STDIN_FILENO, F_SETFL, fdflags & ~O_NONBLOCK) < 0) if (fdflags == -1 || fcntl(STDIN_FILENO, F_SETFL, fdflags & ~O_NONBLOCK) < 0)
perror_on_device_and_die("%s: couldn't reset non-blocking mode"); perror_on_device_and_die("%s: cannot reset non-blocking mode");
} }
/* Initialize to all zeroes so there is no risk memcmp will report a /* Initialize to all zeroes so there is no risk memcmp will report a

View File

@ -189,7 +189,7 @@ int main(int argc, char** argv)
char *devname, *tmp; char *devname, *tmp;
int major, minor; int major, minor;
dev_t devno; dev_t devno;
const char *errmsg = "Couldn't parse %s: %s\n"; const char *errmsg = "Cannot parse %s: %s\n";
blkid_debug_mask = DEBUG_ALL; blkid_debug_mask = DEBUG_ALL;
if ((argc != 2) && (argc != 3)) { if ((argc != 2) && (argc != 3)) {

View File

@ -121,7 +121,7 @@ int main(int argc, char **argv)
exit(1); exit(1);
} }
if (blkid_get_cache(&cache, bb_dev_null) < 0) { if (blkid_get_cache(&cache, bb_dev_null) < 0) {
fprintf(stderr, "Couldn't get blkid cache\n"); fprintf(stderr, "cannot get blkid cache\n");
exit(1); exit(1);
} }

View File

@ -9132,7 +9132,7 @@ static const struct e2fsck_problem problem_table[] = {
/* Internal error: couldn't find dir_info */ /* Internal error: couldn't find dir_info */
{ PR_2_NO_DIRINFO, { PR_2_NO_DIRINFO,
N_("Internal error: couldn't find dir_info for %i.\n"), N_("Internal error: cannot find dir_info for %i.\n"),
PROMPT_NONE, PR_FATAL }, PROMPT_NONE, PR_FATAL },
/* Final rec_len is wrong */ /* Final rec_len is wrong */
@ -9408,7 +9408,7 @@ static const struct e2fsck_problem problem_table[] = {
/* Internal error: couldn't find dir_info */ /* Internal error: couldn't find dir_info */
{ PR_3_NO_DIRINFO, { PR_3_NO_DIRINFO,
N_("Internal error: couldn't find dir_info for %i.\n"), N_("Internal error: cannot find dir_info for %i.\n"),
PROMPT_NONE, PR_FATAL }, PROMPT_NONE, PR_FATAL },
/* Lost+found not a directory */ /* Lost+found not a directory */
@ -12915,7 +12915,7 @@ static void reserve_stdio_fds(void)
if (fd > 2) if (fd > 2)
break; break;
if (fd < 0) { if (fd < 0) {
fprintf(stderr, _("ERROR: Couldn't open " fprintf(stderr, _("ERROR: Cannot open "
"/dev/null (%s)\n"), "/dev/null (%s)\n"),
strerror(errno)); strerror(errno));
break; break;

View File

@ -158,7 +158,7 @@ int main(int argc, char** argv)
char *devname, *tmp; char *devname, *tmp;
int major, minor; int major, minor;
dev_t device; dev_t device;
const char *errmsg = "Couldn't parse %s: %s\n"; const char *errmsg = "Cannot parse %s: %s\n";
if ((argc != 2) && (argc != 3)) { if ((argc != 2) && (argc != 3)) {
fprintf(stderr, "Usage: %s device_number\n", argv[0]); fprintf(stderr, "Usage: %s device_number\n", argv[0]);
@ -191,7 +191,7 @@ int main(int argc, char** argv)
printf("Found device! %s\n", devname); printf("Found device! %s\n", devname);
free(devname); free(devname);
} else { } else {
printf("Couldn't find device.\n"); printf("Cannot find device.\n");
} }
return 0; return 0;
} }

View File

@ -479,7 +479,7 @@ static void load_fs_info(const char *filename)
struct fs_info *fs; struct fs_info *fs;
if ((f = fopen(filename, "r")) == NULL) { if ((f = fopen(filename, "r")) == NULL) {
bb_perror_msg("WARNING: couldn't open %s", filename); bb_perror_msg("WARNING: cannot open %s", filename);
return; return;
} }
while (!feof(f)) { while (!feof(f)) {
@ -717,7 +717,7 @@ static struct fsck_instance *wait_one(int flags)
if ((errno == EINTR) || (errno == EAGAIN)) if ((errno == EINTR) || (errno == EAGAIN))
continue; continue;
if (errno == ECHILD) { if (errno == ECHILD) {
bb_error_msg("wait: No more child process?!?"); bb_error_msg("wait: no more child process?!?");
return NULL; return NULL;
} }
perror("wait"); perror("wait");
@ -840,7 +840,7 @@ static void fsck_device(struct fs_info *fs, int interactive)
num_running++; num_running++;
retval = execute(type, fs->device, fs->mountpt, interactive); retval = execute(type, fs->device, fs->mountpt, interactive);
if (retval) { if (retval) {
bb_error_msg("Error %d while executing fsck.%s for %s", bb_error_msg("error %d while executing fsck.%s for %s",
retval, type, fs->device); retval, type, fs->device);
num_running--; num_running--;
} }
@ -1208,8 +1208,8 @@ static void PRS(int argc, char *argv[])
* /proc/partitions isn't found. * /proc/partitions isn't found.
*/ */
if (access("/proc/partitions", R_OK) < 0) { if (access("/proc/partitions", R_OK) < 0) {
bb_error_msg_and_die("Couldn't open /proc/partitions: %m\n" bb_perror_msg_and_die("cannot open /proc/partitions "
"Is /proc mounted?"); "(is /proc mounted?)");
} }
/* /*
* Check to see if this is because * Check to see if this is because
@ -1217,10 +1217,10 @@ static void PRS(int argc, char *argv[])
*/ */
if (geteuid()) if (geteuid())
bb_error_msg_and_die( bb_error_msg_and_die(
"Must be root to scan for matching filesystems: %s\n", arg); "must be root to scan for matching filesystems: %s\n", arg);
else else
bb_error_msg_and_die( bb_error_msg_and_die(
"Couldn't find matching filesystem: %s", arg); "cannot find matching filesystem: %s", arg);
} }
devices[num_devices++] = dev ? dev : string_copy(arg); devices[num_devices++] = dev ? dev : string_copy(arg);
continue; continue;

View File

@ -397,7 +397,7 @@ static time_t parse_time(char *str)
ts.tm_mday = 0; ts.tm_mday = 0;
#endif #endif
if (ts.tm_mday == 0) { if (ts.tm_mday == 0) {
bb_error_msg_and_die("Couldn't parse date/time specifier: %s", str); bb_error_msg_and_die("Cannot parse date/time specifier: %s", str);
} }
return (mktime(&ts)); return (mktime(&ts));
} }

View File

@ -72,6 +72,6 @@ int get_console_fd(void)
} }
} }
bb_error_msg("Couldn't get a file descriptor referring to the console"); bb_error_msg("cannot get file descriptor referring to console");
return fd; /* total failure */ return fd; /* total failure */
} }

View File

@ -4111,7 +4111,7 @@ int insmod_main( int argc, char **argv)
if (m_has_modinfo) { if (m_has_modinfo) {
m_version = new_get_module_version(f, m_strversion); m_version = new_get_module_version(f, m_strversion);
if (m_version == -1) { if (m_version == -1) {
bb_error_msg("couldn't find the kernel version the module was " bb_error_msg("cannot find the kernel version the module was "
"compiled for"); "compiled for");
goto out; goto out;
} }

View File

@ -172,7 +172,7 @@ int get_raw_packet(struct dhcpMessage *payload, int fd)
memset(&packet, 0, sizeof(struct udp_dhcp_packet)); memset(&packet, 0, sizeof(struct udp_dhcp_packet));
bytes = read(fd, &packet, sizeof(struct udp_dhcp_packet)); bytes = read(fd, &packet, sizeof(struct udp_dhcp_packet));
if (bytes < 0) { if (bytes < 0) {
DEBUG("Couldn't read on raw listening socket - ignoring"); DEBUG("Cannot read on raw listening socket - ignoring");
usleep(500000); /* possible down interface, looping condition */ usleep(500000); /* possible down interface, looping condition */
return -1; return -1;
} }

View File

@ -320,7 +320,7 @@ int udhcpc_main(int argc, char *argv[])
else else
fd = raw_socket(client_config.ifindex); fd = raw_socket(client_config.ifindex);
if (fd < 0) { if (fd < 0) {
bb_perror_msg("FATAL: couldn't listen on socket"); bb_perror_msg("FATAL: cannot listen on socket");
return 0; return 0;
} }
} }

View File

@ -90,7 +90,7 @@ int udhcpd_main(int argc, char *argv[])
if (server_socket < 0) if (server_socket < 0)
if ((server_socket = listen_socket(INADDR_ANY, SERVER_PORT, server_config.interface)) < 0) { if ((server_socket = listen_socket(INADDR_ANY, SERVER_PORT, server_config.interface)) < 0) {
bb_perror_msg("FATAL: couldn't create server socket"); bb_perror_msg("FATAL: cannot create server socket");
return 2; return 2;
} }
@ -137,7 +137,7 @@ int udhcpd_main(int argc, char *argv[])
} }
if ((state = get_option(&packet, DHCP_MESSAGE_TYPE)) == NULL) { if ((state = get_option(&packet, DHCP_MESSAGE_TYPE)) == NULL) {
bb_error_msg("Couldn't get option from packet, ignoring"); bb_error_msg("cannot get option from packet, ignoring");
continue; continue;
} }
@ -165,7 +165,7 @@ int udhcpd_main(int argc, char *argv[])
DEBUG("Received DISCOVER"); DEBUG("Received DISCOVER");
if (sendOffer(&packet) < 0) { if (sendOffer(&packet) < 0) {
bb_error_msg("Send OFFER failed"); bb_error_msg("send OFFER failed");
} }
break; break;
case DHCPREQUEST: case DHCPREQUEST:

View File

@ -717,7 +717,7 @@ static int builtin_source(struct child_prog *child)
/* XXX search through $PATH is missing */ /* XXX search through $PATH is missing */
input = fopen(child->argv[1], "r"); input = fopen(child->argv[1], "r");
if (!input) { if (!input) {
bb_error_msg("Couldn't open file '%s'", child->argv[1]); bb_error_msg("cannot open '%s'", child->argv[1]);
return EXIT_FAILURE; return EXIT_FAILURE;
} }
@ -1120,7 +1120,7 @@ static void pseudo_exec(struct child_prog *child)
#endif #endif
debug_printf("exec of %s\n",child->argv[0]); debug_printf("exec of %s\n",child->argv[0]);
execvp(child->argv[0],child->argv); execvp(child->argv[0],child->argv);
bb_perror_msg("couldn't exec: %s",child->argv[0]); bb_perror_msg("cannot exec: %s",child->argv[0]);
_exit(1); _exit(1);
} else if (child->group) { } else if (child->group) {
debug_printf("runtime nesting to group\n"); debug_printf("runtime nesting to group\n");

View File

@ -185,7 +185,7 @@ static void make_device(char *path, int delete)
putenv(s); putenv(s);
free(s); free(s);
free(command); free(command);
if (rc == -1) bb_perror_msg_and_die("Couldn't run %s", command); if (rc == -1) bb_perror_msg_and_die("cannot run %s", command);
} }
if (delete) unlink(device_name); if (delete) unlink(device_name);
} }