debug.c (99b1bb61b225c3eb4d3b196d4f1d041695b19a7e) | debug.c (d37854cf99319966f34bb19c7a897b87d478b56c) |
---|---|
1/* 2 * This file is part of UBIFS. 3 * 4 * Copyright (C) 2006-2008 Nokia Corporation 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License version 2 as published by 8 * the Free Software Foundation. --- 856 unchanged lines hidden (view full) --- 865 c->lsave_lnum, c->lsave_offs); 866 for (i = 0; i < c->lpt_lebs; i++) 867 printk(KERN_DEBUG "\tLPT LEB %d free %d dirty %d tgc %d " 868 "cmt %d\n", i + c->lpt_first, c->ltab[i].free, 869 c->ltab[i].dirty, c->ltab[i].tgc, c->ltab[i].cmt); 870 spin_unlock(&dbg_lock); 871} 872 | 1/* 2 * This file is part of UBIFS. 3 * 4 * Copyright (C) 2006-2008 Nokia Corporation 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License version 2 as published by 8 * the Free Software Foundation. --- 856 unchanged lines hidden (view full) --- 865 c->lsave_lnum, c->lsave_offs); 866 for (i = 0; i < c->lpt_lebs; i++) 867 printk(KERN_DEBUG "\tLPT LEB %d free %d dirty %d tgc %d " 868 "cmt %d\n", i + c->lpt_first, c->ltab[i].free, 869 c->ltab[i].dirty, c->ltab[i].tgc, c->ltab[i].cmt); 870 spin_unlock(&dbg_lock); 871} 872 |
873void dbg_dump_sleb(const struct ubifs_info *c, 874 const struct ubifs_scan_leb *sleb, int offs) 875{ 876 struct ubifs_scan_node *snod; 877 878 printk(KERN_DEBUG "(pid %d) start dumping scanned data from LEB %d:%d\n", 879 current->pid, sleb->lnum, offs); 880 881 list_for_each_entry(snod, &sleb->nodes, list) { 882 cond_resched(); 883 printk(KERN_DEBUG "Dumping node at LEB %d:%d len %d\n", sleb->lnum, 884 snod->offs, snod->len); 885 dbg_dump_node(c, snod->node); 886 } 887} 888 |
|
873void dbg_dump_leb(const struct ubifs_info *c, int lnum) 874{ 875 struct ubifs_scan_leb *sleb; 876 struct ubifs_scan_node *snod; 877 void *buf; 878 879 if (dbg_is_tst_rcvry(c)) 880 return; --- 2295 unchanged lines hidden --- | 889void dbg_dump_leb(const struct ubifs_info *c, int lnum) 890{ 891 struct ubifs_scan_leb *sleb; 892 struct ubifs_scan_node *snod; 893 void *buf; 894 895 if (dbg_is_tst_rcvry(c)) 896 return; --- 2295 unchanged lines hidden --- |