Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: Convert to using %pOF instead of full_name

Now that we have a custom printf format specifier, convert users of
full_name to use %pOF instead. This is preparation to remove storing
of the full path string for each node.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Rob Herring and committed by
Martin K. Petersen
22fe5670 c1e7194d

+6 -7
+6 -7
drivers/scsi/mac53c94.c
··· 448 448 ioremap(macio_resource_start(mdev, 1), 0x1000); 449 449 state->dmaintr = macio_irq(mdev, 1); 450 450 if (state->regs == NULL || state->dma == NULL) { 451 - printk(KERN_ERR "mac53c94: ioremap failed for %s\n", 452 - node->full_name); 451 + printk(KERN_ERR "mac53c94: ioremap failed for %pOF\n", node); 453 452 goto out_free; 454 453 } 455 454 456 455 clkprop = of_get_property(node, "clock-frequency", &proplen); 457 456 if (clkprop == NULL || proplen != sizeof(int)) { 458 - printk(KERN_ERR "%s: can't get clock frequency, " 459 - "assuming 25MHz\n", node->full_name); 457 + printk(KERN_ERR "%pOF: can't get clock frequency, " 458 + "assuming 25MHz\n", node); 460 459 state->clk_freq = 25000000; 461 460 } else 462 461 state->clk_freq = *(int *)clkprop; ··· 468 469 sizeof(struct dbdma_cmd), GFP_KERNEL); 469 470 if (dma_cmd_space == 0) { 470 471 printk(KERN_ERR "mac53c94: couldn't allocate dma " 471 - "command space for %s\n", node->full_name); 472 + "command space for %pOF\n", node); 472 473 rc = -ENOMEM; 473 474 goto out_free; 474 475 } ··· 480 481 mac53c94_init(state); 481 482 482 483 if (request_irq(state->intr, do_mac53c94_interrupt, 0, "53C94",state)) { 483 - printk(KERN_ERR "mac53C94: can't get irq %d for %s\n", 484 - state->intr, node->full_name); 484 + printk(KERN_ERR "mac53C94: can't get irq %d for %pOF\n", 485 + state->intr, node); 485 486 goto out_free_dma; 486 487 } 487 488