updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / ov51x-jpeg / kernel_messages.patch
blob7fa1221f9fa2349e55adc907b1f69f2c0ca73722
1 diff -Nur ov51x-jpeg-1.5.9-old/ov51x-jpeg.h ov51x-jpeg-1.5.9/ov51x-jpeg.h
2 --- ov51x-jpeg-1.5.9-old/ov51x-jpeg.h 2009-05-04 19:42:00.000000000 +0300
3 +++ ov51x-jpeg-1.5.9/ov51x-jpeg.h 2009-05-04 19:43:01.000000000 +0300
4 @@ -63,6 +63,12 @@
5 #include <media/v4l2-ioctl.h>
6 #endif
8 +/* Add missing info and warn macros by hand for new kernels */
9 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 28)
10 +#define info(args...) printk(KERN_INFO KBUILD_MODNAME args)
11 +#define warn(args...) printk(KERN_WARNING KBUILD_MODNAME args)
12 +#endif
14 /* --------------------------------- */
15 /* DEFINES FOR OV511 AND OTHER CHIPS */
16 /* --------------------------------- */