Browse Source

debugging printk in sg_poll() uses %x to print POLL... bitmap

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 8 years ago
parent
commit
fcc5a652a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/scsi/sg.c

+ 1 - 1
drivers/scsi/sg.c

@@ -1174,7 +1174,7 @@ sg_poll(struct file *filp, poll_table * wait)
 	} else if (count < SG_MAX_QUEUE)
 		res |= POLLOUT | POLLWRNORM;
 	SCSI_LOG_TIMEOUT(3, sg_printk(KERN_INFO, sdp,
-				      "sg_poll: res=0x%x\n", (int) res));
+				      "sg_poll: res=0x%x\n", (__force u32) res));
 	return res;
 }