lkml.org 
[lkml]   [1996]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectPATCH: 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.


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.039 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site