LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   info() function (https://www.linuxquestions.org/questions/linux-kernel-70/info-function-820785/)

WayneK 07-19-2010 03:36 PM

info() function
 
I am trying to modify an existing device driver to build with Debian 2.6.33.1 as a target. The driver is one we downloaded and is a couple of years old so pre-dates 2.6.33.1. It wants to invoke a macro/function called "info", e.g. info(DRIVER_VERSION ":" DRIVER_DESC);. This macro/function cannot be found in the build environment and I cannot find any information on it. Does anyone know what/where this is?

Thanks,
Wayne King

Mara 07-20-2010 03:14 PM

from 2.6.11 (linux/include/linux/usb.h):
Code:

#define info(format, arg...) printk(KERN_INFO "%s: " format "\n" , __FILE__ , ## arg)
You can browse/search olde versions of Linux using http://lxr.linux.no


All times are GMT -5. The time now is 01:57 AM.