diff options
| author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-25 09:52:59 +0100 | 
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-25 09:52:59 +0100 | 
| commit | d1e16c1a61d68692dba346f4a841315343b085f4 (patch) | |
| tree | 249ec07d1489769fe83b4ec507708455cc0c5138 /arch/x86/platform/mrst/early_printk_mrst.c | |
| parent | 1573ee81cb9ef24fa5acee6b7442e215e63ede2f (diff) | |
| parent | 6b16351acbd415e66ba16bf7d473ece1574cf0bc (diff) | |
| download | olio-linux-3.10-d1e16c1a61d68692dba346f4a841315343b085f4.tar.xz olio-linux-3.10-d1e16c1a61d68692dba346f4a841315343b085f4.zip  | |
Merge tag 'v3.5-rc4' into for-3.6
Linux 3.5-rc4 contains some bug fixes which overlap with new features.
Diffstat (limited to 'arch/x86/platform/mrst/early_printk_mrst.c')
| -rw-r--r-- | arch/x86/platform/mrst/early_printk_mrst.c | 13 | 
1 files changed, 5 insertions, 8 deletions
diff --git a/arch/x86/platform/mrst/early_printk_mrst.c b/arch/x86/platform/mrst/early_printk_mrst.c index 3c6e328483c..028454f0c3a 100644 --- a/arch/x86/platform/mrst/early_printk_mrst.c +++ b/arch/x86/platform/mrst/early_printk_mrst.c @@ -110,19 +110,16 @@ static struct kmsg_dumper dw_dumper;  static int dumper_registered;  static void dw_kmsg_dump(struct kmsg_dumper *dumper, -			enum kmsg_dump_reason reason, -			const char *s1, unsigned long l1, -			const char *s2, unsigned long l2) +			 enum kmsg_dump_reason reason)  { -	int i; +	static char line[1024]; +	size_t len;  	/* When run to this, we'd better re-init the HW */  	mrst_early_console_init(); -	for (i = 0; i < l1; i++) -		early_mrst_console.write(&early_mrst_console, s1 + i, 1); -	for (i = 0; i < l2; i++) -		early_mrst_console.write(&early_mrst_console, s2 + i, 1); +	while (kmsg_dump_get_line(dumper, true, line, sizeof(line), &len)) +		early_mrst_console.write(&early_mrst_console, line, len);  }  /* Set the ratio rate to 115200, 8n1, IRQ disabled */  |