2 #include <kernel-offsets.h>
4 #define SHOW_INT(sym) printf("#define %s %d\n", #sym, sym)
5 #define SHOW_STR(sym) printf("#define %s %s\n", #sym, sym)
7 int main(int argc
, char **argv
)
10 printf(" * Generated by mk_constants\n");
13 printf("#ifndef __UM_CONSTANTS_H\n");
14 printf("#define __UM_CONSTANTS_H\n");
17 SHOW_INT(UM_KERN_PAGE_SIZE
);
19 SHOW_STR(UM_KERN_EMERG
);
20 SHOW_STR(UM_KERN_ALERT
);
21 SHOW_STR(UM_KERN_CRIT
);
22 SHOW_STR(UM_KERN_ERR
);
23 SHOW_STR(UM_KERN_WARNING
);
24 SHOW_STR(UM_KERN_NOTICE
);
25 SHOW_STR(UM_KERN_INFO
);
26 SHOW_STR(UM_KERN_DEBUG
);
28 SHOW_INT(UM_NSEC_PER_SEC
);