Cleanup, some more useful default levels for the debug output. It's now silent as well.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10304 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
** Copyright 2002/03, Thomas Kurschel. All rights reserved.
|
* Copyright 2002/03, Thomas Kurschel. All rights reserved.
|
||||||
** Distributed under the terms of the OpenBeOS License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -11,6 +11,7 @@
|
|||||||
much choice as PCI support is very limited there.
|
much choice as PCI support is very limited there.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <KernelExport.h>
|
#include <KernelExport.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -20,14 +21,15 @@
|
|||||||
#include <device_manager.h>
|
#include <device_manager.h>
|
||||||
#include <blkman.h>
|
#include <blkman.h>
|
||||||
|
|
||||||
#define debug_level_flow 4
|
#define debug_level_flow 0
|
||||||
#define debug_level_error 4
|
#define debug_level_error 1
|
||||||
#define debug_level_info 4
|
#define debug_level_info 2
|
||||||
|
|
||||||
#define DEBUG_MSG_PREFIX "IDE ISA -- "
|
#define DEBUG_MSG_PREFIX "IDE ISA -- "
|
||||||
|
|
||||||
#include "wrapper.h"
|
#include "wrapper.h"
|
||||||
|
|
||||||
|
|
||||||
#define IDE_ISA_MODULE_NAME "busses/ide/ide_isa/"ISA_DEVICE_TYPE_NAME
|
#define IDE_ISA_MODULE_NAME "busses/ide/ide_isa/"ISA_DEVICE_TYPE_NAME
|
||||||
|
|
||||||
// private node item:
|
// private node item:
|
||||||
@@ -146,7 +148,6 @@ write_pio_16(channel_info *channel, uint16 *data, int count, bool force_16bit)
|
|||||||
if ((count & 1) != 0 || force_16bit) {
|
if ((count & 1) != 0 || force_16bit) {
|
||||||
for (; count > 0; --count)
|
for (; count > 0; --count)
|
||||||
channel->isa->write_io_16(ioaddr, *(data++));
|
channel->isa->write_io_16(ioaddr, *(data++));
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
uint32 *cur_data = (uint32 *)data;
|
uint32 *cur_data = (uint32 *)data;
|
||||||
|
|
||||||
@@ -171,7 +172,6 @@ read_pio_16(channel_info *channel, uint16 *data, int count, bool force_16bit)
|
|||||||
if ((count & 1) != 0 || force_16bit) {
|
if ((count & 1) != 0 || force_16bit) {
|
||||||
for (; count > 0; --count)
|
for (; count > 0; --count)
|
||||||
*(data++) = channel->isa->read_io_16(ioaddr);
|
*(data++) = channel->isa->read_io_16(ioaddr);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
uint32 *cur_data = (uint32 *)data;
|
uint32 *cur_data = (uint32 *)data;
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef debug_level_flow
|
#ifndef debug_level_flow
|
||||||
# define debug_level_flow 3
|
# define debug_level_flow 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef debug_level_info
|
#ifndef debug_level_info
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef debug_level_error
|
#ifndef debug_level_error
|
||||||
# define debug_level_error 1
|
# define debug_level_error 3
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define FUNC_NAME DEBUG_MSG_PREFIX __FUNCTION__ ": "
|
#define FUNC_NAME DEBUG_MSG_PREFIX __FUNCTION__ ": "
|
||||||
|
|||||||
Reference in New Issue
Block a user