hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/parisc/kernel/firmware.c
....@@ -1230,7 +1230,7 @@
12301230 */
12311231 int pdc_iodc_print(const unsigned char *str, unsigned count)
12321232 {
1233
- unsigned int i;
1233
+ unsigned int i, found = 0;
12341234 unsigned long flags;
12351235
12361236 for (i = 0; i < count;) {
....@@ -1239,6 +1239,7 @@
12391239 iodc_dbuf[i+0] = '\r';
12401240 iodc_dbuf[i+1] = '\n';
12411241 i += 2;
1242
+ found = 1;
12421243 goto print;
12431244 default:
12441245 iodc_dbuf[i] = str[i];
....@@ -1255,7 +1256,7 @@
12551256 __pa(iodc_retbuf), 0, __pa(iodc_dbuf), i, 0);
12561257 spin_unlock_irqrestore(&pdc_lock, flags);
12571258
1258
- return i;
1259
+ return i - found;
12591260 }
12601261
12611262 #if !defined(BOOTLOADER)