bug.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) | bug.c (b0f4c4b32c8e3aa0d44fc4dd6c40a9a9a8d66b63) |
---|---|
1/* 2 Generic support for BUG() 3 4 This respects the following config options: 5 6 CONFIG_BUG - emit BUG traps. Nothing happens without this. 7 CONFIG_GENERIC_BUG - enable this code. 8 CONFIG_GENERIC_BUG_RELATIVE_POINTERS - use 32-bit pointers relative to --- 155 unchanged lines hidden (view full) --- 164 165 print_modules(); 166 show_regs(regs); 167 print_oops_end_marker(); 168 add_taint(BUG_GET_TAINT(bug)); 169 return BUG_TRAP_TYPE_WARN; 170 } 171 | 1/* 2 Generic support for BUG() 3 4 This respects the following config options: 5 6 CONFIG_BUG - emit BUG traps. Nothing happens without this. 7 CONFIG_GENERIC_BUG - enable this code. 8 CONFIG_GENERIC_BUG_RELATIVE_POINTERS - use 32-bit pointers relative to --- 155 unchanged lines hidden (view full) --- 164 165 print_modules(); 166 show_regs(regs); 167 print_oops_end_marker(); 168 add_taint(BUG_GET_TAINT(bug)); 169 return BUG_TRAP_TYPE_WARN; 170 } 171 |
172 printk(KERN_EMERG "------------[ cut here ]------------\n"); | 172 printk(KERN_DEFAULT "------------[ cut here ]------------\n"); |
173 174 if (file) 175 printk(KERN_CRIT "kernel BUG at %s:%u!\n", 176 file, line); 177 else 178 printk(KERN_CRIT "Kernel BUG at %p " 179 "[verbose debug info unavailable]\n", 180 (void *)bugaddr); 181 182 return BUG_TRAP_TYPE_BUG; 183} | 173 174 if (file) 175 printk(KERN_CRIT "kernel BUG at %s:%u!\n", 176 file, line); 177 else 178 printk(KERN_CRIT "Kernel BUG at %p " 179 "[verbose debug info unavailable]\n", 180 (void *)bugaddr); 181 182 return BUG_TRAP_TYPE_BUG; 183} |