]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
sgiioc4: fix messages
authorSergei Shtylylov <sshtylyov@ru.mvista.com>
Mon, 13 Oct 2008 19:39:30 +0000 (21:39 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 13 Oct 2008 19:39:30 +0000 (21:39 +0200)
commit9b5a18e19f8c610c270ee9a0ba03177d737f6aa5
tree0919d07d5767fe06cb2034515c1a23c0c44579c6
parentaa95f0e76571dc1b067d2839c11f2e5589d063d7
sgiioc4: fix messages

Fix several issues with the log messages printed by ide_dma_sgiioc4() and
sgiioc4_ide_setup_pci_device():

- IOC4 registers are memory-mapped but the "BM-DMA at" format corresponds to
  I/O  mapped registers;

- "%p" format specifiers and type casts used to print non-pointer values;

- using KERN_INFO log level for the error message;

- 'hwif->name' printed as drive's name.

While at it, also:

- return more fitting -EBUSY if request_mem_region() fails;

- make the error message style consistent;

- fix indentation, put the printk() facility and message on the same line;

- use comparisions with NULL instead of ! operator..

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: jeremy@sgi.com
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/pci/sgiioc4.c