From 99a00bde95d1e305d5c862911bffed4322b6f544 Mon Sep 17 00:00:00 2001 From: Mike Turquette Date: Wed, 22 Jun 2011 14:37:14 -0700 Subject: OMAP2+: voltage: make warning in get_voltdata useful omap_voltage_get_voltdata complains if it can not find the supplied voltage in the voltage table with a notice stating which voltage domain had the issue. It is also useful to know what the supplied voltage was in such situations. Fixed by adding the voltage parameter to the trace. Acked-by: Nishanth Menon Signed-off-by: Mike Turquette --- arch/arm/mach-omap2/voltage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/arm') diff --git a/arch/arm/mach-omap2/voltage.c b/arch/arm/mach-omap2/voltage.c index c7057f9..89cda23 100644 --- a/arch/arm/mach-omap2/voltage.c +++ b/arch/arm/mach-omap2/voltage.c @@ -240,8 +240,8 @@ struct omap_volt_data *omap_voltage_get_voltdata(struct voltagedomain *voltdm, return &vdd->volt_data[i]; } - pr_notice("%s: Unable to match the current voltage with the voltage" - "table for vdd_%s\n", __func__, voltdm->name); + pr_notice("%s: Unable to match the current voltage %lu with the voltage" + "table for vdd_%s\n", __func__, volt, voltdm->name); return ERR_PTR(-ENODATA); } -- cgit v1.1