Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset d5a1c73 in mainline for kernel/generic/src/debug/panic.c


Ignore:
Timestamp:
2010-07-12T13:42:20Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
c15b374
Parents:
e9a6b29
Message:

If supplied, print also the context-specific message on bad traps and mem traps.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/debug/panic.c

    re9a6b29 rd5a1c73  
    6161        } else if (cat == PANIC_BADTRAP) {
    6262                printf("BAD TRAP %ld.\n", address);
     63                if (fmt) {
     64                        vprintf(fmt, args);
     65                        printf("\n");
     66                }
    6367        } else if (cat == PANIC_MEMTRAP) {
    6468                printf("A BAD MEMORY ACCESS WHILE ");
     
    7276                        printf("REFERENCING");
    7377                printf(" ADDRESS %p.\n", address);
     78                if (fmt) {
     79                        vprintf(fmt, args);
     80                        printf("\n");
     81                }
    7482        } else {
    7583                printf("THE FOLLOWING REASON:\n");
Note: See TracChangeset for help on using the changeset viewer.