Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/uvm



In article <1145093916.810664.4170.nullmailer%yamt.dyndns.org@localhost>
yamt%mwd.biglobe.ne.jp@localhost wrote:

> +#if defined(DEBUG)
> +static void
> +uvm_mapent_check(const struct vm_map_entry *entry)
> +{
 :
> +bad:
> +     panic("%s: bad entry %p", __func__, entry);
> +}
> +#endif /* defined(DEBUG) */

For DEBUG purpose, isn't it better to make uvm_mapent_check()
(or similar macro) take __FILE__ and __LINE__ args like __assert()?
---
Izumi Tsutsui



Home | Main Index | Thread Index | Old Index