regulator: Lower priority of constraint logging
authorMark Brown <broonie@kernel.org>
Fri, 31 Oct 2014 19:11:59 +0000 (19:11 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 31 Oct 2014 19:35:58 +0000 (19:35 +0000)
Some systems have very large numbers of regulators so the constraint
logging done at startup can end up being a very big part of the boot
output which is both verbose and slows things down if the console is
a serial console. Lower to dev_dbg() instead, we may want to provide
a boot parameter to raise this in future but for now people can edit
the source.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
drivers/regulator/core.c

index cd87c0c37034de32ad2f2c7ae2085d4761041761..df2af3a11351aaf642b2b2cacb99509c349513c7 100644 (file)
@@ -828,7 +828,7 @@ static void print_constraints(struct regulator_dev *rdev)
        if (!count)
                sprintf(buf, "no parameters");
 
-       rdev_info(rdev, "%s\n", buf);
+       rdev_dbg(rdev, "%s\n", buf);
 
        if ((constraints->min_uV != constraints->max_uV) &&
            !(constraints->valid_ops_mask & REGULATOR_CHANGE_VOLTAGE))