strings: implement -t radix
[oweals/busybox.git] / e2fsprogs / fsck.c
index 8d89179e361db54e8834fa99673251265f9bb6d5..59514a1a6c629c6bd63d71c8c6befd92a76da76d 100644 (file)
@@ -60,6 +60,7 @@
 //usage:     "\n       -t TYPE List of filesystem types to check"
 
 #include "libbb.h"
+#include "common_bufsiz.h"
 
 /* "progress indicator" code is somewhat buggy and ext[23] specific.
  * We should be filesystem agnostic. IOW: there should be a well-defined
@@ -169,8 +170,9 @@ struct globals {
        struct fs_info *filesys_last;
        struct fsck_instance *instance_list;
 } FIX_ALIASING;
-#define G (*(struct globals*)&bb_common_bufsiz1)
+#define G (*(struct globals*)bb_common_bufsiz1)
 #define INIT_G() do { \
+       setup_common_bufsiz(); \
        BUILD_BUG_ON(sizeof(G) > COMMON_BUFSIZE); \
 } while (0)
 
@@ -602,7 +604,7 @@ static void fsck_device(struct fs_info *fs /*, int interactive */)
        if (strcmp(fs->type, "auto") != 0) {
                type = fs->type;
                if (G.verbose > 2)
-                       bb_info_msg("using filesystem type '%s' %s",
+                       printf("using filesystem type '%s' %s\n",
                                        type, "from fstab");
        } else if (G.fstype
         && (G.fstype[0] != 'n' || G.fstype[1] != 'o') /* != "no" */
@@ -612,12 +614,12 @@ static void fsck_device(struct fs_info *fs /*, int interactive */)
        ) {
                type = G.fstype;
                if (G.verbose > 2)
-                       bb_info_msg("using filesystem type '%s' %s",
+                       printf("using filesystem type '%s' %s\n",
                                        type, "from -t");
        } else {
                type = "auto";
                if (G.verbose > 2)
-                       bb_info_msg("using filesystem type '%s' %s",
+                       printf("using filesystem type '%s' %s\n",
                                        type, "(default)");
        }