- fixed warnings, produced by Haiku version of gcc;
- space-based indentations replaced with tab-based ones; - a bit of cleanup; git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18784 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
/*
|
||||
* Copyright (c) 2003-2005 by Siarzhuk Zharski <[email protected]>
|
||||
* Distributed under the terms of the BSD License.
|
||||
/**
|
||||
*
|
||||
* TODO: description
|
||||
*
|
||||
* This file is a part of USB SCSI CAM for Haiku OS.
|
||||
* May be used under terms of the MIT License
|
||||
*
|
||||
* Author(s):
|
||||
* Siarzhuk Zharski <[email protected]>
|
||||
*
|
||||
*
|
||||
*/
|
||||
#ifndef _DEVICE_INFO_H_
|
||||
@@ -55,3 +62,4 @@ typedef struct _usb_device_info{
|
||||
} usb_device_info;
|
||||
|
||||
#endif /* _DEVICE_INFO_H_ */
|
||||
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
/*
|
||||
* Copyright (c) 2003-2005 by Siarzhuk Zharski <[email protected]>
|
||||
* Distributed under the terms of the BSD License.
|
||||
/**
|
||||
*
|
||||
* TODO: description
|
||||
*
|
||||
* This file is a part of USB SCSI CAM for Haiku OS.
|
||||
* May be used under terms of the MIT License
|
||||
*
|
||||
* Author(s):
|
||||
* Siarzhuk Zharski <[email protected]>
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
/** definitions for SCSI commands, structures etc. */
|
||||
|
||||
#ifndef _SCSI_COMMANDS_H_
|
||||
@@ -316,3 +322,4 @@ typedef struct _scsi_sense_data{
|
||||
}scsi_sense_data;
|
||||
|
||||
#endif /*_SCSI_COMMANDS_H_*/
|
||||
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
/*
|
||||
* Copyright (c) 2003-2005 by Siarzhuk Zharski <[email protected]>
|
||||
* Distributed under the terms of the BSD License.
|
||||
/**
|
||||
*
|
||||
* TODO: description
|
||||
*
|
||||
* This file is a part of USB SCSI CAM for Haiku OS.
|
||||
* May be used under terms of the MIT License
|
||||
*
|
||||
* Author(s):
|
||||
* Siarzhuk Zharski <[email protected]>
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
/** tracing support implementation */
|
||||
|
||||
#include "usb_scsi.h"
|
||||
@@ -79,6 +85,7 @@ static bool b_log_thname = false;
|
||||
/** log result of READ_CAPACITY command */
|
||||
bool b_log_capacity = false;
|
||||
|
||||
|
||||
/**
|
||||
\fn: load_log_settings
|
||||
\param sh: driver_settings handle
|
||||
@@ -127,7 +134,7 @@ load_log_settings(void *sh)
|
||||
called to [re]create private log file
|
||||
*/
|
||||
void
|
||||
create_log()
|
||||
create_log(void)
|
||||
{
|
||||
int flags = O_WRONLY | O_CREAT | ((!b_log_append) ? O_TRUNC : 0);
|
||||
if(b_log_file){
|
||||
@@ -375,3 +382,4 @@ void usb_scsi_trace_SG(iovec *sg, int count)
|
||||
}
|
||||
|
||||
#endif /* BUILD_LOG_DAEMON */
|
||||
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
/*
|
||||
* Copyright (c) 2003-2005 by Siarzhuk Zharski <[email protected]>
|
||||
* Distributed under the terms of the BSD License.
|
||||
/**
|
||||
*
|
||||
* TODO: description
|
||||
*
|
||||
* This file is a part of USB SCSI CAM for Haiku OS.
|
||||
* May be used under terms of the MIT License
|
||||
*
|
||||
* Author(s):
|
||||
* Siarzhuk Zharski <[email protected]>
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
/** tracing support definitions */
|
||||
|
||||
#ifndef _USB_SCSI_TRACING_H_
|
||||
@@ -14,7 +20,7 @@
|
||||
#endif /*_SG_BUFFER_H_*/
|
||||
|
||||
void load_log_settings(void *sh);
|
||||
void create_log();
|
||||
void create_log(void);
|
||||
void usb_scsi_trace(bool b_force, const char *fmt, ...);
|
||||
|
||||
/* non-switchable tracng functions */
|
||||
@@ -94,3 +100,4 @@ extern bool b_log_capacity;
|
||||
{ if(b_log_capacity) usb_scsi_trace_sgb(prefix, data); }
|
||||
|
||||
#endif /*_USB_SCSI_TRACING_H_*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user