Commit 53ab0e6888925ae3ebe931c060120b0f11c1923c

Authored by Joe Perches
Committed by Guenter Roeck
1 parent 22d3b41281

hwmon: (hp_accel) Use pr_fmt and pr_<level>

Added #define pr_fmt KBUILD_MODNAME ": " fmt
Converted printks to pr_<level>
Coalesced any long formats
Removed prefixes from formats

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>

Showing 1 changed file with 7 additions and 6 deletions Side-by-side Diff

drivers/hwmon/hp_accel.c
... ... @@ -20,6 +20,8 @@
20 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 21 */
22 22  
  23 +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
  24 +
23 25 #include <linux/kernel.h>
24 26 #include <linux/init.h>
25 27 #include <linux/dmi.h>
... ... @@ -147,7 +149,7 @@
147 149 static int lis3lv02d_dmi_matched(const struct dmi_system_id *dmi)
148 150 {
149 151 lis3_dev.ac = *((union axis_conversion *)dmi->driver_data);
150   - printk(KERN_INFO DRIVER_NAME ": hardware type %s found.\n", dmi->ident);
  152 + pr_info("hardware type %s found\n", dmi->ident);
151 153  
152 154 return 1;
153 155 }
154 156  
... ... @@ -303,11 +305,10 @@
303 305  
304 306 /* If possible use a "standard" axes order */
305 307 if (lis3_dev.ac.x && lis3_dev.ac.y && lis3_dev.ac.z) {
306   - printk(KERN_INFO DRIVER_NAME ": Using custom axes %d,%d,%d\n",
307   - lis3_dev.ac.x, lis3_dev.ac.y, lis3_dev.ac.z);
  308 + pr_info("Using custom axes %d,%d,%d\n",
  309 + lis3_dev.ac.x, lis3_dev.ac.y, lis3_dev.ac.z);
308 310 } else if (dmi_check_system(lis3lv02d_dmi_ids) == 0) {
309   - printk(KERN_INFO DRIVER_NAME ": laptop model unknown, "
310   - "using default axes configuration\n");
  311 + pr_info("laptop model unknown, using default axes configuration\n");
311 312 lis3_dev.ac = lis3lv02d_axis_normal;
312 313 }
313 314  
... ... @@ -385,7 +386,7 @@
385 386 if (ret < 0)
386 387 return ret;
387 388  
388   - printk(KERN_INFO DRIVER_NAME " driver loaded.\n");
  389 + pr_info("driver loaded\n");
389 390  
390 391 return 0;
391 392 }