History

fs/ubifs: use %pUB to print UUIDs

Joe Perches committed 16 years ago

Commit 7f2f4e71 parent f0b34ae2 files · +3 −13Browse files

Unified · Split

2 files
  1. fs/ubifs/debug.c +2 −7
  2. fs/ubifs/super.c +1 −6
fs/ubifs/debug.c+2−7
@@ -350,13 +350,8 @@ void dbg_dump_node(const struct ubifs_info *c, const void *node) · 349 unmodified lines
350 le32_to_cpu(sup->fmt_version));350 le32_to_cpu(sup->fmt_version));
351 printk(KERN_DEBUG "\ttime_gran %u\n",351 printk(KERN_DEBUG "\ttime_gran %u\n",
352 le32_to_cpu(sup->time_gran));352 le32_to_cpu(sup->time_gran));
353 printk(KERN_DEBUG "\tUUID %02X%02X%02X%02X-%02X%02X"353 printk(KERN_DEBUG "\tUUID %pUB\n",
354 "-%02X%02X-%02X%02X-%02X%02X%02X%02X%02X%02X\n",354 sup->uuid);
355 sup->uuid[0], sup->uuid[1], sup->uuid[2], sup->uuid[3],
356 sup->uuid[4], sup->uuid[5], sup->uuid[6], sup->uuid[7],
357 sup->uuid[8], sup->uuid[9], sup->uuid[10], sup->uuid[11],
358 sup->uuid[12], sup->uuid[13], sup->uuid[14],
359 sup->uuid[15]);
360 break;355 break;
361 }356 }
362 case UBIFS_MST_NODE:357 case UBIFS_MST_NODE:
fs/ubifs/super.c+1−6
@@ -1393,12 +1393,7 @@ static int mount_ubifs(struct ubifs_info *c) · 1392 unmodified lines
1393 c->leb_size, c->leb_size >> 10);1393 c->leb_size, c->leb_size >> 10);
1394 dbg_msg("data journal heads: %d",1394 dbg_msg("data journal heads: %d",
1395 c->jhead_cnt - NONDATA_JHEADS_CNT);1395 c->jhead_cnt - NONDATA_JHEADS_CNT);
1396 dbg_msg("UUID: %02X%02X%02X%02X-%02X%02X"1396 dbg_msg("UUID: %pUB", c->uuid);
1397 "-%02X%02X-%02X%02X-%02X%02X%02X%02X%02X%02X",
1398 c->uuid[0], c->uuid[1], c->uuid[2], c->uuid[3],
1399 c->uuid[4], c->uuid[5], c->uuid[6], c->uuid[7],
1400 c->uuid[8], c->uuid[9], c->uuid[10], c->uuid[11],
1401 c->uuid[12], c->uuid[13], c->uuid[14], c->uuid[15]);
1402 dbg_msg("big_lpt %d", c->big_lpt);1397 dbg_msg("big_lpt %d", c->big_lpt);
1403 dbg_msg("log LEBs: %d (%d - %d)",1398 dbg_msg("log LEBs: %d (%d - %d)",
1404 c->log_lebs, UBIFS_LOG_LNUM, c->log_last);1399 c->log_lebs, UBIFS_LOG_LNUM, c->log_last);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t