From: Andi Kleen Date: Sun, 13 Jan 2008 16:41:43 +0000 (+0100) Subject: [SCSI] sg: Only print SCSI data direction warning once for a command X-Git-Tag: v2.6.25-rc1~1230^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaa3e22e8d32bf7a6176f04efad90f4a5aa67f58;p=pandora-kernel.git [SCSI] sg: Only print SCSI data direction warning once for a command When I use cdparanoia my logs get spammed a lot by printk: 464 messages suppressed. sg_write: data in/out 30576/30576 bytes for SCSI command 0xbe--guessing data in; program cdparanoia not setting count and/or reply_len properly printk: 1078 messages suppressed. and many more of those. With this patch the message is only printed once for a command in a row. v1->v2: Prevent rate limit messages too (pointed out by jejb) Signed-off-by: Andi Kleen Acked-by: Douglas Gilbert Signed-off-by: James Bottomley --- Reading git-diff-tree failed