diff options
Diffstat (limited to 'libblkid/src/tag.c')
-rw-r--r-- | libblkid/src/tag.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/libblkid/src/tag.c b/libblkid/src/tag.c index e095ab1be..6af806251 100644 --- a/libblkid/src/tag.c +++ b/libblkid/src/tag.c @@ -30,7 +30,6 @@ static blkid_tag blkid_new_tag(void) return tag; } -#ifdef CONFIG_BLKID_DEBUG void blkid_debug_dump_tag(blkid_tag tag) { if (!tag) { @@ -40,14 +39,13 @@ void blkid_debug_dump_tag(blkid_tag tag) fprintf(stderr, " tag: %s=\"%s\"\n", tag->bit_name, tag->bit_val); } -#endif void blkid_free_tag(blkid_tag tag) { if (!tag) return; - DBG(TAG, blkid_debug(" freeing tag %s=%s", tag->bit_name, + DBG(TAG, ul_debug(" freeing tag %s=%s", tag->bit_name, tag->bit_val ? tag->bit_val : "(NULL)")); DBG(TAG, blkid_debug_dump_tag(tag)); @@ -109,7 +107,7 @@ static blkid_tag blkid_find_head_cache(blkid_cache cache, const char *type) list_for_each(p, &cache->bic_tags) { tmp = list_entry(p, struct blkid_struct_tag, bit_tags); if (!strcmp(tmp->bit_name, type)) { - DBG(TAG, blkid_debug(" found cache tag head %s", type)); + DBG(TAG, ul_debug(" found cache tag head %s", type)); head = tmp; break; } @@ -177,7 +175,7 @@ int blkid_set_tag(blkid_dev dev, const char *name, if (!head) goto errout; - DBG(TAG, blkid_debug(" creating new cache tag head %s", name)); + DBG(TAG, ul_debug(" creating new cache tag head %s", name)); head->bit_name = name ? strdup(name) : NULL; if (!head->bit_name) goto errout; @@ -221,7 +219,7 @@ int blkid_parse_tag_string(const char *token, char **ret_type, char **ret_val) { char *name, *value, *cp; - DBG(TAG, blkid_debug("trying to parse '%s' as a tag", token)); + DBG(TAG, ul_debug("trying to parse '%s' as a tag", token)); if (!token || !(cp = strchr(token, '='))) return -1; @@ -253,7 +251,7 @@ int blkid_parse_tag_string(const char *token, char **ret_type, char **ret_val) return 0; errout: - DBG(TAG, blkid_debug("parse error: '%s'", token)); + DBG(TAG, ul_debug("parse error: '%s'", token)); free(name); return -1; } @@ -350,7 +348,7 @@ blkid_dev blkid_find_dev_with_tag(blkid_cache cache, blkid_read_cache(cache); - DBG(TAG, blkid_debug("looking for %s=%s in cache", type, value)); + DBG(TAG, ul_debug("looking for %s=%s in cache", type, value)); try_again: pri = -1; |