From 5ff5d0e6678fee07ec51b05eedc1590408d19288 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 20 Jun 2011 20:09:04 +0000 Subject: [PATCH] Cleanup git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3601 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/usr/isns.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/iscsi-scst/usr/isns.c b/iscsi-scst/usr/isns.c index 7e8c00e0c..b579e6c43 100644 --- a/iscsi-scst/usr/isns.c +++ b/iscsi-scst/usr/isns.c @@ -160,7 +160,7 @@ static int isns_connect(void) return -errno; } - log_error("%s %d: new connection %d", __func__, __LINE__, fd); + log_info("%s %d: new connection %d", __func__, __LINE__, fd); if (!strlen(eid)) { err = isns_get_ip(fd); @@ -781,18 +781,18 @@ static char *print_scn_pdu(struct isns_hdr *hdr) switch (ntohl(tlv->tag)) { case ISNS_ATTR_ISCSI_NAME: ((char *)tlv->value)[vlen-1] = '\0'; - log_error("scn name: %u, %s", vlen, (char *)tlv->value); + log_debug(3, "scn name: %u, %s", vlen, (char *)tlv->value); if (!name) name = (char *)tlv->value; break; case ISNS_ATTR_TIMESTAMP: if (vlen < 8) goto next; - /* log_error("%u : %u : %" PRIx64, ntohl(tlv->tag), vlen, */ + /* log_debug(3, "%u : %u : %" PRIx64, ntohl(tlv->tag), vlen, */ /* *((uint64_t *)tlv->value)); */ break; case ISNS_ATTR_ISCSI_SCN_BITMAP: - log_error("scn bitmap : %x", *((uint32_t *)tlv->value)); + log_debug(3, "scn bitmap : %x", *((uint32_t *)tlv->value)); break; } @@ -876,7 +876,7 @@ found: break; case ISNS_ATTR_ISCSI_NODE_TYPE: if (ntohl(*(tlv->value)) == ISNS_NODE_INITIATOR && name) { - log_error("%s %d: %s", __func__, __LINE__, + log_debug(3, "%s %d: %s", __func__, __LINE__, (char *)name); ini = malloc(sizeof(*ini)); if (!ini) @@ -946,7 +946,7 @@ int isns_handle(int is_timeout) case ISNS_FUNC_SCN: name = print_scn_pdu(hdr); if (name) { - log_error("%s %d: %s", __func__, __LINE__, name); + log_debug(3, "%s %d: %s", __func__, __LINE__, name); isns_attr_query(name); } break; @@ -974,7 +974,7 @@ static int scn_accept_connection(void) strerror(errno)); return -errno; } - log_error("Accept scn connection %d", fd); + log_info("Accept scn connection %d", fd); err = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)); if (err) @@ -1030,7 +1030,7 @@ int isns_scn_handle(int is_accept) uint16_t sequence __attribute__((unused)); char *name = NULL; - log_error("%s %d: %d", __func__, __LINE__, is_accept); + log_debug(3, "%s %d: %d", __func__, __LINE__, is_accept); if (is_accept) return scn_accept_connection();