mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-20 15:04:19 +00:00
The patch below fixes the following recently introduced checkpatch complaints:
* use tabs not spaces * Macros with complex values should be enclosed in parenthesis. * printk() should include KERN_ facility level. The patch below has been verified by reviewing it carefully and by verifying the output of the following command: scripts/run-regression-tests -k 2.6.28.8 Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@707 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -238,7 +238,7 @@ int config_account_add(u32 tid, int dir, char *name, char *pass)
|
||||
|
||||
if (tid) {
|
||||
/* check here */
|
||||
/* return -ENOENT; */
|
||||
/* return -ENOENT; */
|
||||
}
|
||||
|
||||
/* Check for minimum RFC defined value */
|
||||
|
||||
@@ -172,7 +172,7 @@ static void create_listen_socket(struct pollfd *array)
|
||||
opt = 1;
|
||||
if (res->ai_family == AF_INET6 &&
|
||||
setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &opt, sizeof(opt))) {
|
||||
log_error("Unable to restrict IPv6 socket (%s)", strerror(errno));
|
||||
log_error("Unable to restrict IPv6 socket (%s)", strerror(errno));
|
||||
close(sock);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -604,8 +604,8 @@ static char *print_scn_pdu(struct isns_hdr *hdr)
|
||||
name = (char *) tlv->value;
|
||||
break;
|
||||
case ISNS_ATTR_TIMESTAMP:
|
||||
/* log_error("%u : %u : %" PRIx64, ntohl(tlv->tag), vlen, */
|
||||
/* *((uint64_t *) tlv->value)); */
|
||||
/* log_error("%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));
|
||||
|
||||
Reference in New Issue
Block a user