mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 14:13:53 +00:00
hwmon: (hwmon-vid) 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>
This commit is contained in:
parent
53ab0e6888
commit
1f923c7a67
@ -22,6 +22,8 @@
|
|||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||||
|
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/hwmon-vid.h>
|
#include <linux/hwmon-vid.h>
|
||||||
@ -146,8 +148,8 @@ int vid_from_reg(int val, u8 vrm)
|
|||||||
return(val > 0x77 ? 0 : (1500000 - (val * 12500) + 500) / 1000);
|
return(val > 0x77 ? 0 : (1500000 - (val * 12500) + 500) / 1000);
|
||||||
default: /* report 0 for unknown */
|
default: /* report 0 for unknown */
|
||||||
if (vrm)
|
if (vrm)
|
||||||
printk(KERN_WARNING "hwmon-vid: Requested unsupported "
|
pr_warn("Requested unsupported VRM version (%u)\n",
|
||||||
"VRM version (%u)\n", (unsigned int)vrm);
|
(unsigned int)vrm);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -246,8 +248,7 @@ u8 vid_which_vrm(void)
|
|||||||
}
|
}
|
||||||
vrm_ret = find_vrm(eff_family, eff_model, eff_stepping, c->x86_vendor);
|
vrm_ret = find_vrm(eff_family, eff_model, eff_stepping, c->x86_vendor);
|
||||||
if (vrm_ret == 0)
|
if (vrm_ret == 0)
|
||||||
printk(KERN_INFO "hwmon-vid: Unknown VRM version of your "
|
pr_info("Unknown VRM version of your x86 CPU\n");
|
||||||
"x86 CPU\n");
|
|
||||||
return vrm_ret;
|
return vrm_ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -255,7 +256,7 @@ u8 vid_which_vrm(void)
|
|||||||
#else
|
#else
|
||||||
u8 vid_which_vrm(void)
|
u8 vid_which_vrm(void)
|
||||||
{
|
{
|
||||||
printk(KERN_INFO "hwmon-vid: Unknown VRM version of your CPU\n");
|
pr_info("Unknown VRM version of your CPU\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user