|
@@ -205,11 +205,15 @@ void __init omap2xxx_check_revision(void)
|
|
|
|
|
|
#define OMAP3_SHOW_FEATURE(feat) \
|
|
#define OMAP3_SHOW_FEATURE(feat) \
|
|
if (omap3_has_ ##feat()) \
|
|
if (omap3_has_ ##feat()) \
|
|
- printk(#feat" ");
|
|
|
|
|
|
+ n += scnprintf(buf + n, sizeof(buf) - n, #feat " ");
|
|
|
|
|
|
static void __init omap3_cpuinfo(void)
|
|
static void __init omap3_cpuinfo(void)
|
|
{
|
|
{
|
|
const char *cpu_name;
|
|
const char *cpu_name;
|
|
|
|
+ char buf[64];
|
|
|
|
+ int n = 0;
|
|
|
|
+
|
|
|
|
+ memset(buf, 0, sizeof(buf));
|
|
|
|
|
|
/*
|
|
/*
|
|
* OMAP3430 and OMAP3530 are assumed to be same.
|
|
* OMAP3430 and OMAP3530 are assumed to be same.
|
|
@@ -241,10 +245,10 @@ static void __init omap3_cpuinfo(void)
|
|
cpu_name = "OMAP3503";
|
|
cpu_name = "OMAP3503";
|
|
}
|
|
}
|
|
|
|
|
|
- sprintf(soc_name, "%s", cpu_name);
|
|
|
|
|
|
+ scnprintf(soc_name, sizeof(soc_name), "%s", cpu_name);
|
|
|
|
|
|
/* Print verbose information */
|
|
/* Print verbose information */
|
|
- pr_info("%s %s (", soc_name, soc_rev);
|
|
|
|
|
|
+ n += scnprintf(buf, sizeof(buf) - n, "%s %s (", soc_name, soc_rev);
|
|
|
|
|
|
OMAP3_SHOW_FEATURE(l2cache);
|
|
OMAP3_SHOW_FEATURE(l2cache);
|
|
OMAP3_SHOW_FEATURE(iva);
|
|
OMAP3_SHOW_FEATURE(iva);
|
|
@@ -252,8 +256,10 @@ static void __init omap3_cpuinfo(void)
|
|
OMAP3_SHOW_FEATURE(neon);
|
|
OMAP3_SHOW_FEATURE(neon);
|
|
OMAP3_SHOW_FEATURE(isp);
|
|
OMAP3_SHOW_FEATURE(isp);
|
|
OMAP3_SHOW_FEATURE(192mhz_clk);
|
|
OMAP3_SHOW_FEATURE(192mhz_clk);
|
|
-
|
|
|
|
- printk(")\n");
|
|
|
|
|
|
+ if (*(buf + n - 1) == ' ')
|
|
|
|
+ n--;
|
|
|
|
+ n += scnprintf(buf + n, sizeof(buf) - n, ")\n");
|
|
|
|
+ pr_info("%s", buf);
|
|
}
|
|
}
|
|
|
|
|
|
#define OMAP3_CHECK_FEATURE(status,feat) \
|
|
#define OMAP3_CHECK_FEATURE(status,feat) \
|