Ignore:
File:
1 edited

Legend:

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

    rd16fc78 r90c8b8d  
    3636#define KERN_PRINT_H_
    3737
    38 #include <typedefs.h>
    39 #include <stdarg.h>
     38#include <arch/types.h>
     39#include <arch/arg.h>
    4040
    41 #ifndef NVERIFY_PRINTF
    42 
    43 #define PRINTF_ATTRIBUTE(start, end) \
    44         __attribute__((format(gnu_printf, start, end)))
    45 
    46 #else /* NVERIFY_PRINTF */
    47 
    48 #define PRINTF_ATTRIBUTE(start, end)
    49 
    50 #endif /* NVERIFY_PRINTF */
    51 
    52 #define EOF  (-1)
     41#define EOF (-1)
    5342
    5443extern int puts(const char *s);
    55 extern int printf(const char *fmt, ...)
    56     PRINTF_ATTRIBUTE(1, 2);
    57 extern int snprintf(char *str, size_t size, const char *fmt, ...)
    58     PRINTF_ATTRIBUTE(3, 4);
     44extern int printf(const char *fmt, ...);
     45extern int snprintf(char *str, size_t size, const char *fmt, ...);
    5946
    6047extern int vprintf(const char *fmt, va_list ap);
Note: See TracChangeset for help on using the changeset viewer.