Message ID | 1444881890-4012-15-git-send-email-yangds.fnst@cn.fujitsu.com |
---|---|
State | Superseded |
Headers | show |
diff --git a/ubifs-utils/include/defs.h b/ubifs-utils/include/defs.h index 1fa3316..739af7f 100644 --- a/ubifs-utils/include/defs.h +++ b/ubifs-utils/include/defs.h @@ -81,6 +81,15 @@ __res = ((unsigned long) n) % (unsigned) base; \ n = ((unsigned long) n) / (unsigned) base; \ __res; }) +/* + * printk + */ +#define printk(fmt, args...) fprintf(stderr, fmt, ##args) +#define KERN_CRIT "" +#define KERN_ERR "" +#define ubifs_err(c, fmt, args...) printk(fmt, ##args) +#define pr_err(fmt, args...) printk(fmt, ##args) + #if INT_MAX != 0x7fffffff #error : sizeof(int) must be 4 for this program #endif
There are some functions of printk class in code copied from kernel. Then add a compatible definitions in defs.h for them. Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com> --- ubifs-utils/include/defs.h | 9 +++++++++ 1 file changed, 9 insertions(+)