diff options
author | Scott Long <scottl@FreeBSD.org> | 2008-03-08 18:06:48 +0000 |
---|---|---|
committer | Scott Long <scottl@FreeBSD.org> | 2008-03-08 18:06:48 +0000 |
commit | 9d6a74eb846f7f795e0e4bca9ca2be735feee32c (patch) | |
tree | 0397f830e40c56dba254410af17109ce080ce3eb /sys/dev/hptrr/hptrr_os_bsd.c | |
parent | 36b208e00823666d9233cdabbf2084ceb397f377 (diff) | |
download | src-9d6a74eb846f7f795e0e4bca9ca2be735feee32c.tar.gz src-9d6a74eb846f7f795e0e4bca9ca2be735feee32c.zip |
Fix a mistake made during the import of the driver. Previous versions of
HPT drivers would sometimes test the value of a preprocessor definition but
not always make sure that the definition existed in the first place, leading
to warnings on newer compilers. I blindly assumed the same with this driver,
and it turned out to be wrong and to enable some code that doesn't work.
Notes
Notes:
svn path=/head/; revision=176939
Diffstat (limited to 'sys/dev/hptrr/hptrr_os_bsd.c')
-rw-r--r-- | sys/dev/hptrr/hptrr_os_bsd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/hptrr/hptrr_os_bsd.c b/sys/dev/hptrr/hptrr_os_bsd.c index a469e1b668d3..81a38295b003 100644 --- a/sys/dev/hptrr/hptrr_os_bsd.c +++ b/sys/dev/hptrr/hptrr_os_bsd.c @@ -132,7 +132,7 @@ void freelist_reserve(struct freelist *list, void *osext, HPT_UINT size, HPT_UIN list->dma = 0; list->size = size; list->head = 0; -#ifdef DBG +#if DBG list->reserved_count = #endif list->count = count; @@ -172,7 +172,7 @@ void freelist_reserve_dma(struct freelist *list, void *osext, HPT_UINT size, HPT list->alignment = alignment; list->size = size; list->head = 0; -#ifdef DBG +#if DBG list->reserved_count = #endif list->count = count; @@ -289,7 +289,7 @@ int os_printk(char *fmt, ...) return printf("%s: %s\n", driver_name, buf); } -#ifdef DBG +#if DBG void os_check_stack(const char *location, int size){} void __os_dbgbreak(const char *file, int line) |