From: Tejun Heo Date: Mon, 15 May 2006 11:57:55 +0000 (+0900) Subject: [PATCH] libata: implement ATA printk helpers X-Git-Tag: v2.6.18-rc1~1079^2~98^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61440db61fe4945ad9f7b32b4d6a22b17174aa1f;p=pandora-kernel.git [PATCH] libata: implement ATA printk helpers Implement ata_{port|dev}_printk() which prefixes the message with proper identification string. This change is necessary for later PM support because devices and links should be identified differently depending on how they are attached. This also helps unifying device id strings. Currently, there are two forms in use (P is the port number D device number) - 'ataP(D):', and 'ataP: dev D '. These macros also make it harder to forget proper ID string (e.g. printing only port number when a device is in question). Debug message handling can be integrated into these printk macros by passing debug type and level via @lv. Signed-off-by: Tejun Heo --- Reading git-diff-tree failed