#ifdef CONFIG_BLKID_DEBUG
#include <stdio.h>
extern int blkid_debug_mask;
-extern void blkid_debug_init(int mask);
+extern void blkid_init_debug(int mask);
extern void blkid_debug_dump_dev(blkid_dev dev);
extern void blkid_debug_dump_tag(blkid_tag tag);
#else /* !CONFIG_BLKID_DEBUG */
#define DBG(m,x)
-#define blkid_debug_init(x)
+#define blkid_init_debug(x)
#endif /* CONFIG_BLKID_DEBUG */
/* devno.c */
#endif
#ifdef CONFIG_BLKID_DEBUG
-void blkid_debug_init(int mask)
+void blkid_init_debug(int mask)
{
if (blkid_debug_mask & DEBUG_INIT)
return;
{
blkid_cache cache;
- blkid_debug_init(0);
+ blkid_init_debug(0);
DBG(DEBUG_CACHE, printf("creating blkid cache (using %s)\n",
filename ? filename : "default cache"));
blkid_cache cache = NULL;
int ret;
- blkid_debug_init(DEBUG_ALL);
+ blkid_init_debug(DEBUG_ALL);
if ((argc > 2)) {
fprintf(stderr, "Usage: %s [filename] \n", argv[0]);
struct blkid_config *conf;
char *filename = NULL;
- blkid_debug_init(DEBUG_ALL);
+ blkid_init_debug(DEBUG_ALL);
if (argc == 2)
filename = argv[1];
optarg);
exit(1);
}
- blkid_debug_init(mask);
+ blkid_init_debug(mask);
break;
}
case '?':
blkid_cache cache = NULL;
int ret;
- blkid_debug_init(DEBUG_ALL);
+ blkid_init_debug(DEBUG_ALL);
if (argc != 1) {
fprintf(stderr, "Usage: %s\n"
"Probe all devices and exit\n", argv[0]);
dev_t devno;
const char *errmsg = "Couldn't parse %s: %s\n";
- blkid_debug_init(DEBUG_ALL);
+ blkid_init_debug(DEBUG_ALL);
if ((argc != 2) && (argc != 3)) {
fprintf(stderr, "Usage:\t%s device_number\n\t%s major minor\n"
"Resolve a device number to a device name\n",
return NULL;
if (!cache || !*cache)
- blkid_debug_init(0);
+ blkid_init_debug(0);
DBG(DEBUG_EVALUATE,
printf("evaluating %s%s%s\n", token, value ? "=" : "",
return EXIT_FAILURE;
}
- blkid_debug_init(0);
+ blkid_init_debug(0);
res = blkid_evaluate_spec(argv[1], argv[2], &cache);
if (res)
*/
blkid_probe blkid_new_probe(void)
{
- blkid_debug_init(0);
+ blkid_init_debug(0);
return calloc(1, sizeof(struct blkid_struct_probe));
}
blkid_cache cache = NULL;
int ret;
- blkid_debug_init(DEBUG_ALL);
+ blkid_init_debug(DEBUG_ALL);
if (argc > 2) {
fprintf(stderr, "Usage: %s [filename]\n"
"Test parsing of the cache (filename)\n", argv[0]);
char *value;
blkid_cache cache;
- blkid_debug_init(DEBUG_ALL);
+ blkid_init_debug(DEBUG_ALL);
if (argc != 2 && argc != 3) {
fprintf(stderr, "Usage:\t%s tagname=value\n"
"\t%s tagname devname\n"
blkid_cache cache = NULL;
int ret;
- blkid_debug_init(DEBUG_ALL);
+ blkid_init_debug(DEBUG_ALL);
if (argc > 2) {
fprintf(stderr, "Usage: %s [filename]\n"
"Test loading/saving a cache (filename)\n", argv[0]);
optarg);
exit(1);
}
- blkid_debug_init(mask);
+ blkid_init_debug(mask);
break;
}
case '?':