Re: [PATCH] staging:comedi: Fixed coding convention issues.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joe Perches
Date: Saturday, June 12, 2010 - 10:07 pm

On Sun, 2010-06-13 at 10:14 +0800, Mark Rankilor wrote:

A couple of options for comedi:

1: Use #define pr_fmt(fmt) "comedi: " fmt
   pr_<level>(format, ...)

2: Create some comedi logging functions or macros like:
   	comedi_<level>(fmt, arg...) (ie: comedi_info, comedi_err, etc)
   where "comedi:" is always prefixed and an
   optional #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
   could be used.

That'd shorten line lengths quite a bit and add
some better standardization to comedi.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] staging:comedi: Fixed coding convention issues., Joe Perches, (Sat Jun 12, 10:07 pm)
Re: [PATCH] staging:comedi: Fixed coding convention issues., Henri Häkkinen, (Sun Jun 13, 4:27 am)