Messages in this thread | | | Date | Tue, 30 Mar 2010 19:07:18 +0300 | Subject | pr_* versus dev_* | From | Neshama Parhoti <> |
| |
Which set of macros should I use in my driver ?
pr_info, pr_err, etc... or dev_info, dev_err, etc. ?
what are the advantages of the dev_* macros over the pr_* macros (why does it take the device pointer as an argument) ?
obviously I don't have access to my device pointer in all my functions.. so pr_info is easier to use.. but if it's wanted, obviously I can arrange to have my device pointer accessible..
thank you ~pnesh
| |