Revert "DEBUG add function to set debug fd"
We will have a completely different debugging framework soon.
This reverts commit ec46d6fa43.
This commit is contained in:
@@ -130,7 +130,6 @@ struct iscsi_context {
|
||||
int no_auto_reconnect;
|
||||
int reconnect_deferred;
|
||||
int debug;
|
||||
int debug_fd;
|
||||
int mallocs;
|
||||
int reallocs;
|
||||
int frees;
|
||||
@@ -305,7 +304,7 @@ struct scsi_task *iscsi_scsi_get_task_from_pdu(struct iscsi_pdu *pdu);
|
||||
|
||||
void iscsi_set_noautoreconnect(struct iscsi_context *iscsi, int state);
|
||||
|
||||
void iscsi_decrement_iface_rr(void);
|
||||
void iscsi_decrement_iface_rr();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -971,12 +971,12 @@ iscsi_scsi_cancel_all_tasks(struct iscsi_context *iscsi);
|
||||
#define DPRINTF(iscsi,level,fmt,args...) \
|
||||
do { \
|
||||
if ((iscsi)->debug >= level) { \
|
||||
dprintf((iscsi)->debug_fd,"libiscsi: "); \
|
||||
dprintf((iscsi)->debug_fd, (fmt), ##args); \
|
||||
fprintf(stderr,"libiscsi: "); \
|
||||
fprintf(stderr, (fmt), ##args); \
|
||||
if (iscsi->target_name[0]) { \
|
||||
dprintf((iscsi)->debug_fd," [%s]",iscsi->target_name); \
|
||||
fprintf(stderr," [%s]",iscsi->target_name); \
|
||||
} \
|
||||
dprintf((iscsi)->debug_fd,"\n"); \
|
||||
fprintf(stderr,"\n"); \
|
||||
} \
|
||||
} while (0);
|
||||
|
||||
@@ -993,12 +993,6 @@ iscsi_scsi_cancel_all_tasks(struct iscsi_context *iscsi);
|
||||
EXTERN void
|
||||
iscsi_set_debug(struct iscsi_context *iscsi, int level);
|
||||
|
||||
/*
|
||||
* This function is to set fd where debugging info is sent to. default is stderr (2)
|
||||
*/
|
||||
EXTERN void
|
||||
iscsi_set_debug_fd(struct iscsi_context *iscsi, int fd);
|
||||
|
||||
/*
|
||||
* This function is to set the TCP_USER_TIMEOUT option. It has to be called after iscsi
|
||||
* context creation. The value given in ms is then applied each time a new socket is created.
|
||||
|
||||
Reference in New Issue
Block a user