Replace a few more bb_info_msg's by bb_error_msg or printf
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 30 Mar 2016 14:20:28 +0000 (16:20 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 30 Mar 2016 14:20:28 +0000 (16:20 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
loginutils/chpasswd.c
loginutils/passwd.c
miscutils/devfsd.c
miscutils/flash_eraseall.c
networking/inetd.c
networking/traceroute.c
networking/tunctl.c
util-linux/mkfs_ext2.c

index a022a42d6f1724d93785e1d3cb5ea0b04de6a8e2..2d268be67c042a5fc441b6e51972f5caf55bd1a5 100644 (file)
@@ -105,7 +105,7 @@ int chpasswd_main(int argc UNUSED_PARAM, char **argv)
                if (rc < 0)
                        bb_error_msg_and_die("an error occurred updating password for %s", name);
                if (rc)
-                       bb_info_msg("Password for '%s' changed", name);
+                       bb_error_msg("password for '%s' changed", name);
                logmode = LOGMODE_STDIO;
                free(name);
                free(free_me);
index 73726d3e058598c8bbdd30790d80a144482ce9e1..52b66ca50508fbe68f5af72c2635b6e65ee4ec62 100644 (file)
@@ -230,7 +230,7 @@ int passwd_main(int argc UNUSED_PARAM, char **argv)
        /* LOGMODE_BOTH */
        if (rc < 0)
                bb_error_msg_and_die("can't update password file %s", filename);
-       bb_info_msg("Password for %s changed by %s", name, myname);
+       bb_error_msg("password for %s changed by %s", name, myname);
 
        /*if (ENABLE_FEATURE_CLEAN_UP) free(newp); - can't, it may be non-malloced */
  skip:
index 9256567cccc28c6034236e758bb16899c96fcdfe..6217918da71bf4e795bb5f36d343455a7f253ede 100644 (file)
@@ -284,7 +284,7 @@ static const char bb_msg_variable_not_found[] ALIGN1 = "variable: %s not found";
 
 /* Busybox stuff */
 #if ENABLE_DEVFSD_VERBOSE || ENABLE_DEBUG
-#define info_logger(p, fmt, args...)                 bb_info_msg(fmt, ## args)
+#define info_logger(p, fmt, args...)                 bb_error_msg(fmt, ## args)
 #define msg_logger(p, fmt, args...)                  bb_error_msg(fmt, ## args)
 #define msg_logger_and_die(p, fmt, args...)          bb_error_msg_and_die(fmt, ## args)
 #define error_logger(p, fmt, args...)                bb_perror_msg(fmt, ## args)
index bf9b739a1591f1403452e3aa8d6a7d8f083d43c7..d95d214d914c5fbbd96d1ae88a77033e1ff23cb9 100644 (file)
@@ -147,7 +147,7 @@ int flash_eraseall_main(int argc UNUSED_PARAM, char **argv)
                        ret = ioctl(fd, MEMGETBADBLOCK, &offset);
                        if (ret > 0) {
                                if (!(flags & OPTION_Q))
-                                       bb_info_msg("\nSkipping bad block at 0x%08x", erase.start);
+                                       printf("\nSkipping bad block at 0x%08x\n", erase.start);
                                continue;
                        }
                        if (ret < 0) {
index 243165a0728a5b09fbb364a2a65b844566ae8a09..4f6673b1271b06fb8a3cdb3b21bc6de4bcb36610 100644 (file)
@@ -834,10 +834,10 @@ static NOINLINE servtab_t *parse_one_line(void)
                        goto parse_err;
        }
 
-//     bb_info_msg(
-//             "ENTRY[%s][%s][%s][%d][%d][%d][%d][%d][%s][%s][%s]",
-//             sep->se_local_hostname, sep->se_service, sep->se_proto, sep->se_wait, sep->se_proto_no,
-//             sep->se_max, sep->se_count, sep->se_time, sep->se_user, sep->se_group, sep->se_program);
+       //bb_error_msg(
+       //      "ENTRY[%s][%s][%s][%d][%d][%d][%d][%d][%s][%s][%s]",
+       //      sep->se_local_hostname, sep->se_service, sep->se_proto, sep->se_wait, sep->se_proto_no,
+       //      sep->se_max, sep->se_count, sep->se_time, sep->se_user, sep->se_group, sep->se_program);
 
        /* check if the hostname specifier is a comma separated list
         * of hostnames. we'll make new entries for each address. */
index 642110c54b15e95536aab5766e2eea99a7ad2ffa..eee4f8873a1230723cb05d2f23e896378742659d 100644 (file)
@@ -497,7 +497,7 @@ send_probe(int seq, int ttl)
 
        res = xsendto(sndsock, out, len, &dest_lsa->u.sa, dest_lsa->len);
        if (res != len)
-               bb_info_msg("sent %d octets, ret=%d", len, res);
+               bb_error_msg("sent %d octets, ret=%d", len, res);
 }
 
 #if ENABLE_FEATURE_TRACEROUTE_VERBOSE
index 3a0870eb5d7210393957334d20eeca0f6d67c306..941e8bbd3024e3bc4174ac92973bea62dbe1c7a4 100644 (file)
@@ -82,7 +82,7 @@ int tunctl_main(int argc UNUSED_PARAM, char **argv)
        // delete?
        if (opts & OPT_d) {
                IOCTL(fd, TUNSETPERSIST, (void *)(uintptr_t)0);
-               bb_info_msg("Set '%s' %spersistent", ifr.ifr_name, "non");
+               printf("Set '%s' nonpersistent\n", ifr.ifr_name);
                return EXIT_SUCCESS;
        }
 
index 749f420680c7c9304153eac2e3e1c11398561f93..f91a0b4bf360eeb48a47fc0eab32277419c14732 100644 (file)
@@ -151,7 +151,7 @@ static uint32_t has_super(uint32_t x)
 
 static void PUT(uint64_t off, void *buf, uint32_t size)
 {
-//     bb_info_msg("PUT[%llu]:[%u]", off, size);
+       //bb_error_msg("PUT[%llu]:[%u]", off, size);
        xlseek(fd, off, SEEK_SET);
        xwrite(fd, buf, size);
 }