Skip to content

Commit 384727c

Browse files
committed
Merge tag 'optee-for-v6.14' of https://git.linaro.org/people/jens.wiklander/linux-tee into soc/drivers
Fix format string for printing optee build_id * tag 'optee-for-v6.14' of https://git.linaro.org/people/jens.wiklander/linux-tee: optee: fix format string for printing optee build_id Link: https://lore.kernel.org/r/20250102140102.GA3082088@rayden Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 220fcc1 + 1ff7d09 commit 384727c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/tee/optee/smc_abi.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,8 +1272,9 @@ static void optee_msg_get_os_revision(optee_invoke_fn *invoke_fn)
12721272
&res.smccc);
12731273

12741274
if (res.result.build_id)
1275-
pr_info("revision %lu.%lu (%08lx)", res.result.major,
1276-
res.result.minor, res.result.build_id);
1275+
pr_info("revision %lu.%lu (%0*lx)", res.result.major,
1276+
res.result.minor, (int)sizeof(res.result.build_id) * 2,
1277+
res.result.build_id);
12771278
else
12781279
pr_info("revision %lu.%lu", res.result.major, res.result.minor);
12791280
}

0 commit comments

Comments
 (0)