projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe2a772
)
hdt: Fixing cpu flags splitting
author
Erwan Velu
<erwan.velu@free.fr>
Sun, 29 Nov 2009 20:13:00 +0000
(21:13 +0100)
committer
Erwan Velu
<erwan.velu@free.fr>
Fri, 4 Dec 2009 09:11:15 +0000
(10:11 +0100)
Impact: improve rendering
Under the cli, the cpu flags were sometimes leaking to another line
com32/hdt/hdt-cli-cpu.c
patch
|
blob
|
history
diff --git
a/com32/hdt/hdt-cli-cpu.c
b/com32/hdt/hdt-cli-cpu.c
index
1b080a2
..
fbdbc99
100644
(file)
--- a/
com32/hdt/hdt-cli-cpu.c
+++ b/
com32/hdt/hdt-cli-cpu.c
@@
-64,7
+64,7
@@
void main_show_cpu(int argc __unused, char **argv __unused,
static void show_flag(char *buffer, bool flag, char *flag_name, bool flush)
{
char output_buffer[81];
- if ((((strlen(buffer) + strlen(flag_name)) > 6
8
) && flag) || flush) {
+ if ((((strlen(buffer) + strlen(flag_name)) > 6
6
) && flag) || flush) {
snprintf(output_buffer, sizeof output_buffer, "Flags : %s\n",
buffer);
more_printf(output_buffer);