Re: [PATCH 14/17] sym53c8xx: Get rid of IRQ_FMT and IRQ_PRM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Matthew Wilcox wrote:
On Tue, Oct 09, 2007 at 11:35:14AM -0400, Jeff Garzik wrote:
Not true. The original code used 'int irq', and the printf format was correct as a result.

You changed the code to use 'unsigned int irq' as found in struct pci_dev, without changing IRQ_FMT as needed.

If you wanted to avoid the regression another way, I suppose patch #1 should update IRQ_FMT to use "%u", and patch #14 should move the "%u" use to its caller.

What do you think the regression is, exactly?

The *only* difference in how vsnprintf handles %d vs %u is the sign bit.

Because when you change the type, you should change the printf format to match?

It used to match, before your patchset.  Now it doesn't.

	Jeff



-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux