lkml.org 
[lkml]   [1999]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdebug build (was: Re: swapcache bug?)
I've written device drivers for WinNT & Win95/98, and for both OS'es
there is a special kernel build with extended internal checks.

I've seen that many linux drivers use internal #define's, but I couldn't
find a central CONFIG_CHECK (or something like that).

I think that such an option should be added.

E.g. it you could write

assert( (page->offset & (PAGE_SIZE-1)) == 0);

even in the most time critical code paths, and unlike a comment this
line would cause a printk() if someone ignores that.

Regards,
Manfred

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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