diff mbox

parisc : Remove broken line wrapping handling pdc_iodc_print()

Message ID 20101206164804.1dd8765e@borg.bxl.tuxicoman.be (mailing list archive)
State Accepted
Headers show

Commit Message

Guy Martin Dec. 6, 2010, 3:48 p.m. UTC
None
diff mbox

Patch

--- arch/parisc/kernel/firmware.c.orig	2010-12-05 16:42:07.000000000 +0100
+++ arch/parisc/kernel/firmware.c	2010-12-05 17:32:52.000000000 +0100
@@ -1126,15 +1126,13 @@ 
 	unsigned int i;
 	unsigned long flags;
 
-	for (i = 0; i < count && i < 79;) {
+	for (i = 0; i < count;) {
 		switch(str[i]) {
 		case '\n':
 			iodc_dbuf[i+0] = '\r';
 			iodc_dbuf[i+1] = '\n';
 			i += 2;
 			goto print;
-		case '\b':	/* BS */
-			i--; /* overwrite last */
 		default:
 			iodc_dbuf[i] = str[i];
 			i++;
@@ -1142,15 +1140,6 @@ 
 		}
 	}
 
-	/* if we're at the end of line, and not already inserting a newline,
-	 * insert one anyway. iodc console doesn't claim to support >79 char
-	 * lines. don't account for this in the return value.
-	 */
-	if (i == 79 && iodc_dbuf[i-1] != '\n') {
-		iodc_dbuf[i+0] = '\r';
-		iodc_dbuf[i+1] = '\n';
-	}
-
 print:
         spin_lock_irqsave(&pdc_lock, flags);
         real32_call(PAGE0->mem_cons.iodc_io,