projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9782364
)
s5pc11x device_info: reduce the size, empty buffer if the previous values are not...
author
MyungJoo Ham
<MyungJoo.Ham@samsung.com>
Fri, 26 Feb 2010 05:09:56 +0000
(14:09 +0900)
committer
MyungJoo Ham
<MyungJoo.Ham@samsung.com>
Fri, 26 Feb 2010 05:09:56 +0000
(14:09 +0900)
board/samsung/universal/universal.c
patch
|
blob
|
history
diff --git
a/board/samsung/universal/universal.c
b/board/samsung/universal/universal.c
index
637732a
..
f957ac2
100644
(file)
--- a/
board/samsung/universal/universal.c
+++ b/
board/samsung/universal/universal.c
@@
-306,7
+306,7
@@
void i2c_init_board(void)
}
#ifdef CONFIG_MISC_INIT_R
-#define DEV_INFO_LEN
512
+#define DEV_INFO_LEN
256
static char device_info[DEV_INFO_LEN];
static int display_info;
@@
-332,7
+332,7
@@
static void dprintf(const char *fmt, ...)
puts(device_info);
empty_device_info_buffer();
}
- str
cat(device_info, buf
);
+ str
ncat(device_info, buf, 127
);
puts(buf);
}
@@
-684,6
+684,7
@@
static void show_hw_revision(void)
s5pc1xx_set_cpu_rev(0);
}
+ empty_device_info_buffer();
dprintf("HW Revision:\t%x (%s%s) %s\n",
board_rev, get_board_name(board),
display_features(board, board_rev),