//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
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)
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" */
) {
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)");
}