Messages in this thread | | | Date | Tue, 9 Apr 96 18:55 PDT | From | (Bruce Perens) | Subject | PATCH: ramdisk loading status display is corrupted |
| |
Dear Linus and Co.,
When loading a RAM disk at boot time, the kernel prints something like this:
loading ramdisk... <5>/<5>-<5>\<5>|<5>/<5>-
And so on, for several lines. The <5> is of course the logging level. This patch will correct the appearance of the display without hacking up printk().
Bruce Perens
*** drivers/block/rd.c.old Tue Apr 9 17:20:35 1996 --- drivers/block/rd.c Tue Apr 9 17:26:57 1996 *************** *** 483,489 **** outfile.f_op->write(outfile.f_inode, &outfile, buf, BLOCK_SIZE); if (!(i % 16)) { ! printk(KERN_NOTICE "%c\b", rotator[rotate & 0x3]); rotate++; } } --- 483,495 ---- outfile.f_op->write(outfile.f_inode, &outfile, buf, BLOCK_SIZE); if (!(i % 16)) { ! /* ! * 9-Apr-96 Bruce Perens <Bruce@Pixar.com> ! * This prints a leading "<5>" string because of the ! * logging level sentinel embedded in the message. Rub ! * it out. ! */ ! printk(KERN_NOTICE "\b\b\b%c \b\b\b", rotator[rotate & 0x3]); rotate++; } } -- Pixar Animation Studios: Reality is not our business. Pixar's "Toy Story" $184.5M domestic, $66M overseas and counting.
| |