Changeset 9ac2013 in mainline for kernel/generic/include/panic.h


Ignore:
Timestamp:
2010-11-26T01:26:17Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0b0f4bb
Parents:
04357767
Message:

add format checking to more printf-like functions (fault_if_from_uspace, panic_common, fprintf, snprintf, asprintf)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/panic.h

    r04357767 r9ac2013  
    3737
    3838#include <typedefs.h>
     39#include <print.h>
    3940
    4041#define panic(fmt, ...) \
     
    6263
    6364extern void panic_common(panic_category_t, struct istate *, int,
    64     uintptr_t, const char *, ...) __attribute__ ((noreturn));
     65    uintptr_t, const char *, ...) __attribute__ ((noreturn))
     66    PRINTF_ATTRIBUTE(5, 6);
    6567
    6668#endif
Note: See TracChangeset for help on using the changeset viewer.