staging: dgap: Add a pr_info per board info
authorMark Hounschell <markh@compro.net>
Wed, 12 Mar 2014 16:50:56 +0000 (12:50 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 21:35:44 +0000 (14:35 -0700)
This patch adds a pr_info per board that indicates
board number, type, etc..

Signed-off-by: Mark Hounschell <markh@compro.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c

index 1dc209536f9578e42fa779ac4dc7f65e491594a0..224f6a51cbcd83a1a553686eb7106792ca69318f 100644 (file)
@@ -820,6 +820,10 @@ static int dgap_found_board(struct pci_dev *pdev, int id)
        if (i)
                brd->state = BOARD_FAILED;
 
+       pr_info("dgap: board %d: %s (rev %d), irq %ld, %s\n",
+               dgap_NumBoards, brd->name, brd->rev, brd->irq,
+               brd->state ? "NOT READY\0" : "READY\0");
+
        return 0;
 }