xen/cmdline: fix printf format specifier in no_config_param()

'*' sets the width field, which is the minimum number of characters to output,
but what we want in no_config_param() is the precision instead, which is '.*'
as it imposes a maximum limit on the output.

Fixes: 68d757df8d ('x86/pv: Options to disable and/or compile out 32bit PV support')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: ef101f5251
master date: 2024-02-26 10:17:40 +0100
This commit is contained in:
Roger Pau Monné authored and Jan Beulich committed 2024-02-27 14:10:39 +01:00
1 parent f6b1279254
commit 229e8a72ee
1 file changed
+1 -1
+1 -1
View File
@@ -191,7 +191,7 @@ static inline void no_config_param(const char *cfg, const char *param,
{
int len = e ? ({ ASSERT(e >= s); e - s; }) : strlen(s);
printk(XENLOG_INFO "CONFIG_%s disabled - ignoring '%s=%*s' setting\n",
printk(XENLOG_INFO "CONFIG_%s disabled - ignoring '%s=%.*s' setting\n",
cfg, param, len, s);
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.