Revision 08d86900 core/src/aos_system.c
core/src/aos_system.c | ||
---|---|---|
48 | 48 |
/** |
49 | 49 |
* @brief Width of the printable system info text. |
50 | 50 |
*/ |
51 |
#define SYSTEM_INFO_WIDTH 70
|
|
51 |
#define SYSTEM_INFO_WIDTH 80
|
|
52 | 52 |
|
53 | 53 |
/** |
54 | 54 |
* @brief Width of the name column of the system info table. |
55 | 55 |
*/ |
56 |
#define SYSTEM_INFO_NAMEWIDTH 14
|
|
56 |
#define SYSTEM_INFO_NAMEWIDTH 20
|
|
57 | 57 |
|
58 | 58 |
/******************************************************************************/ |
59 | 59 |
/* EXPORTED VARIABLES */ |
... | ... | |
180 | 180 |
* |
181 | 181 |
* @param[in] stream Stream to print to or NULL to print to all system streams. |
182 | 182 |
* @param[in] name Name of the entry/line. |
183 |
* @param[in] namewidth Width of the name column.
|
|
183 |
* @param[in] namewidth Minimum width of the name column.
|
|
184 | 184 |
* @param[in] fmt Formatted string of information content. |
185 | 185 |
* |
186 | 186 |
* @return Number of characters printed. |
... | ... | |
195 | 195 |
|
196 | 196 |
va_start(ap, fmt); |
197 | 197 |
n += (unsigned int)chprintf(stream, name); |
198 |
while (n < namewidth) { |
|
198 |
// print at least a single space character |
|
199 |
do { |
|
199 | 200 |
streamPut(stream, ' '); |
200 | 201 |
++n; |
201 |
} |
|
202 |
} while (n < namewidth);
|
|
202 | 203 |
n += (unsigned int)chvprintf(stream, fmt, ap); |
203 | 204 |
va_end(ap); |
204 | 205 |
|
... | ... | |
273 | 274 |
} |
274 | 275 |
#endif /* (AMIROOS_CFG_BOOTLOADER == X) */ |
275 | 276 |
|
277 |
#if defined(AMIROOS_CFG_SYSINFO_HOOK) |
|
278 |
// print module specific information |
|
279 |
_printSystemInfoSeparator(stream, '-', SYSTEM_INFO_WIDTH); |
|
280 |
AMIROOS_CFG_SYSINFO_HOOK(); |
|
281 |
#endif /* defined(AMIROOS_CFG_SYSINFO_HOOK) */ |
|
282 |
|
|
276 | 283 |
// print dynamic information about the module |
277 | 284 |
_printSystemInfoSeparator(stream, '-', SYSTEM_INFO_WIDTH); |
278 | 285 |
#if (AMIROOS_CFG_SSSP_ENABLE == true) |
Also available in: Unified diff