Changeset 9ac2013 in mainline
- Timestamp:
- 2010-11-26T01:26:17Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b0f4bb
- Parents:
- 04357767
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/interrupt.h
r04357767 r9ac2013 37 37 38 38 #include <arch/interrupt.h> 39 #include <print.h> 39 40 #include <typedefs.h> 40 41 #include <proc/task.h> … … 57 58 extern exc_table_t exc_table[]; 58 59 59 extern void fault_if_from_uspace(istate_t *, const char *, ...); 60 extern void fault_if_from_uspace(istate_t *, const char *, ...) 61 PRINTF_ATTRIBUTE(2, 3); 60 62 extern iroutine_t exc_register(unsigned int, const char *, bool, iroutine_t); 61 63 extern void exc_dispatch(unsigned int, istate_t *); -
kernel/generic/include/panic.h
r04357767 r9ac2013 37 37 38 38 #include <typedefs.h> 39 #include <print.h> 39 40 40 41 #define panic(fmt, ...) \ … … 62 63 63 64 extern 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); 65 67 66 68 #endif -
uspace/lib/c/include/stdio.h
r04357767 r9ac2013 41 41 #include <adt/list.h> 42 42 43 #ifndef NVERIFY_PRINTF 44 45 #define PRINTF_ATTRIBUTE(start, end) \ 46 __attribute__((format(gnu_printf, start, end))) 47 48 #else /* NVERIFY_PRINTF */ 49 50 #define PRINTF_ATTRIBUTE(start, end) 51 52 #endif /* NVERIFY_PRINTF */ 53 43 54 #define EOF (-1) 44 55 … … 149 160 150 161 /* Formatted string output functions */ 151 extern int fprintf(FILE *, const char*, ...); 162 extern int fprintf(FILE *, const char*, ...) 163 PRINTF_ATTRIBUTE(2, 3); 152 164 extern int vfprintf(FILE *, const char *, va_list); 153 165 154 extern int printf(const char *, ...); 166 extern int printf(const char *, ...) 167 PRINTF_ATTRIBUTE(1, 2); 155 168 extern int vprintf(const char *, va_list); 156 169 157 extern int snprintf(char *, size_t , const char *, ...); 158 extern int asprintf(char **, const char *, ...); 170 extern int snprintf(char *, size_t , const char *, ...) 171 PRINTF_ATTRIBUTE(3, 4); 172 extern int asprintf(char **, const char *, ...) 173 PRINTF_ATTRIBUTE(2, 3); 159 174 extern int vsnprintf(char *, size_t, const char *, va_list); 160 175
Note:
See TracChangeset
for help on using the changeset viewer.