]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cpu: mpc83xx: Remove unnecessary characters in the description string
authorBin Meng <bmeng.cn@gmail.com>
Thu, 11 Oct 2018 05:06:56 +0000 (22:06 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 14 Nov 2018 17:16:27 +0000 (09:16 -0800)
The description string should not contain unnecessary characters,
like the ending '\n' or the leading 'CPU:'.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/cpu/mpc83xx_cpu.c

index 31717afaec4f899328a63ac9a49847e9653f612c..7bc86bf9b208a07fd3301848ba84c253d0fed576 100644 (file)
@@ -262,7 +262,7 @@ static int mpc83xx_cpu_get_desc(struct udevice *dev, char *buf, int size)
        determine_cpu_data(dev);
 
        snprintf(buf, size,
-                "CPU:   %s, MPC%s%s%s, Rev: %d.%d at %s MHz, CSB: %s MHz\n",
+                "%s, MPC%s%s%s, Rev: %d.%d at %s MHz, CSB: %s MHz",
                 e300_names[priv->e300_type],
                 cpu_type_names[priv->type],
                 priv->is_e_processor ? "E" : "",