Update of /cvsroot/linuxisns/isnsNT/isnsserver/src
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv19323/isnsserver/src
Modified Files:
iSNSLinux.c iSNSMain.c iSNSquery.c
Log Message:
change minor debug statements
Index: iSNSLinux.c
===================================================================
RCS file: /cvsroot/linuxisns/isnsNT/isnsserver/src/iSNSLinux.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** iSNSLinux.c 23 Aug 2007 20:02:11 -0000 1.15
--- iSNSLinux.c 23 Aug 2007 22:31:07 -0000 1.16
***************
*** 412,420 ****
isns_list_debug = -1;
}
else if (!strcmp(type,"reg"))
{
isns_reg_debug = -1;
isns_dereg_debug = -1;
- isns_query_debug = -1;
}
else if (!strcmp(type,"fsm"))
--- 412,423 ----
isns_list_debug = -1;
}
+ else if (!strcmp(type,"query"))
+ {
+ isns_query_debug = -1;
+ }
else if (!strcmp(type,"reg"))
{
isns_reg_debug = -1;
isns_dereg_debug = -1;
}
else if (!strcmp(type,"fsm"))
Index: iSNSquery.c
===================================================================
RCS file: /cvsroot/linuxisns/isnsNT/isnsserver/src/iSNSquery.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** iSNSquery.c 23 Aug 2007 04:00:52 -0000 1.26
--- iSNSquery.c 23 Aug 2007 22:31:07 -0000 1.27
***************
*** 1553,1556 ****
--- 1553,1557 ----
ISNS_LIST_NODE *pnode;
int rval;
+ int rc;
__DEBUG (isns_query_debug &1,(Attribute Query - ISCSI:%s),(char *)&src_attr->val);
***************
*** 1807,1810 ****
--- 1808,1813 ----
{
key = (ISNS_Key *)(key_indx[nodeTypeKeyIndex]);
+ __DEBUG(isns_query_debug &1, key->val.node_type:%i p_node->type:%i,key->val.node_type,p_node->type);
+
if (!(*(uint32_t *) &key->val & p_node->type))
continue;
***************
*** 1828,1838 ****
}
}
!
if (!foundFlag)
! return (ISNS_NO_SUCH_ENTRY_ERR);
! __DEBUG (isns_query_debug &1,return from GetAttrISCSI);
! return ISNS_NO_ERR;
}
--- 1831,1842 ----
}
}
!
! rc = ISNS_NO_ERR;
if (!foundFlag)
! rc = ISNS_NO_SUCH_ENTRY_ERR;
! __DEBUG (isns_query_debug &1,return from GetAttrISCSI rc:%i,rc);
! return rc;
}
Index: iSNSMain.c
===================================================================
RCS file: /cvsroot/linuxisns/isnsNT/isnsserver/src/iSNSMain.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** iSNSMain.c 7 Aug 2007 14:41:47 -0000 1.15
--- iSNSMain.c 23 Aug 2007 22:31:07 -0000 1.16
***************
*** 271,275 ****
inet_ntoa_b (source_ip, dot_not_addr);
! __DEBUG(isns_main_debug &1,"SNSProcessRequest type: 0x%x - %s",msg_type,FuncIDText(msg_type));
switch (msg_type)
--- 271,275 ----
inet_ntoa_b (source_ip, dot_not_addr);
! __DEBUG(isns_main_debug &1,"ProcessRequest type:0x%x-%s",msg_type,FuncIDText(msg_type));
switch (msg_type)
|