Skip to content

Commit

Permalink
Merge tag 'optee-for-v6.14' of https://git.linaro.org/people/jens.wik…
Browse files Browse the repository at this point in the history
…lander/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>
  • Loading branch information
Arnd Bergmann committed Jan 15, 2025
2 parents 220fcc1 + 1ff7d09 commit 384727c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/tee/optee/smc_abi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1272,8 +1272,9 @@ static void optee_msg_get_os_revision(optee_invoke_fn *invoke_fn)
&res.smccc);

if (res.result.build_id)
pr_info("revision %lu.%lu (%08lx)", res.result.major,
res.result.minor, res.result.build_id);
pr_info("revision %lu.%lu (%0*lx)", res.result.major,
res.result.minor, (int)sizeof(res.result.build_id) * 2,
res.result.build_id);
else
pr_info("revision %lu.%lu", res.result.major, res.result.minor);
}
Expand Down

0 comments on commit 384727c

Please sign in to comment.