• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisionabe52f58bc54efa9a9849ad4246666ae0be94d38 (tree)
Time2022-07-25 23:12:00
AuthorFrancesco Dolcini <francesco.dolcini@tora...>
CommiterStefano Babic

Log Message

toradex: common: Improve product/serial print during boot

Add product id print in show_board_info(), with an increasing number of
Toradex SKUs available with small differences it makes sense to print it.

Move serial number print to a dedicated line, this prevents the previous
line with the product name to overflow the 80 columns with any
reasonable product name length.

Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>

Change Summary

Incremental Difference

--- a/board/toradex/common/tdx-common.c
+++ b/board/toradex/common/tdx-common.c
@@ -115,10 +115,11 @@ int show_board_info(void)
115115
116116 env_set("serial#", tdx_serial_str);
117117
118- printf("Model: Toradex %s %s, Serial# %s\n",
118+ printf("Model: Toradex %04d %s %s\n",
119+ tdx_hw_tag.prodid,
119120 toradex_modules[tdx_hw_tag.prodid].name,
120- tdx_board_rev_str,
121- tdx_serial_str);
121+ tdx_board_rev_str);
122+ printf("Serial#: %s\n", tdx_serial_str);
122123 #ifdef CONFIG_TDX_CFG_BLOCK_EXTRA
123124 if (read_tdx_cfg_block_carrier()) {
124125 printf("MISSING TORADEX CARRIER CONFIG BLOCKS\n");