the sickness continues

Laszlo Vecsey (master@internexus.net)
Wed, 29 Jan 1997 09:55:47 -0500 (EST)


> > > >
> > > > I found the following section of code back in patch-2.1.21:
> > > >
> > > > - if (EXT_MEM_K < 1024) error("Less than 2MB of memory.\n");
> > > > + if (EXT_MEM_K < 1024) error("<2M of mem\n");
> > > >
> > > > Can someone change the "<2M of mem" to "Less than 2MB of memory."? The
> > > > former error message is somewhat annoying to new users who wish
> > > > to run Linux on their old 386/16 with 1MB of RAM.
>
> The longer message is annoying for those who run Linux on a
> 20 char wide LCD display - I hate error messages that line wrap ;-)
> Plus - hands up who wants a bloated kernel ;-*

How about having a separate include file or set of directories and files
for just this purpose, customizable error messages. This way people can
work on and release their own custom 'flavor' of Linux by modifying these
files, which I assume would just include some const char*'s.
BIG_UNDERLINED variables could be used to reduce namespace pollution.

#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)