aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-gd.c
diff options
context:
space:
mode:
authorBorislav Petkov <petkovbb@gmail.com>2009-01-02 07:34:47 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 07:46:19 -0400
commit088b1b88609ce89b6ab19d114cdbec94a44aa22c (patch)
tree2c4f7769e8b2854bcb028dda99c34fe7de3847ae /drivers/ide/ide-gd.c
parent70775e9c627d7094189b96d73fffced6dab30b30 (diff)
ide: improve debugging scheme
and more specifically, push __func__ into debug macro thus making ide_debug_log() calls shorter and more readable. Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Diffstat (limited to 'drivers/ide/ide-gd.c')
-rw-r--r--drivers/ide/ide-gd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide-gd.c b/drivers/ide/ide-gd.c
index 047109419902..c51a35093ae2 100644
--- a/drivers/ide/ide-gd.c
+++ b/drivers/ide/ide-gd.c
@@ -182,7 +182,7 @@ static int ide_gd_open(struct block_device *bdev, fmode_t mode)
182 182
183 drive = idkp->drive; 183 drive = idkp->drive;
184 184
185 ide_debug_log(IDE_DBG_FUNC, "Call %s\n", __func__); 185 ide_debug_log(IDE_DBG_FUNC, "enter");
186 186
187 idkp->openers++; 187 idkp->openers++;
188 188
@@ -232,7 +232,7 @@ static int ide_gd_release(struct gendisk *disk, fmode_t mode)
232 struct ide_disk_obj *idkp = ide_drv_g(disk, ide_disk_obj); 232 struct ide_disk_obj *idkp = ide_drv_g(disk, ide_disk_obj);
233 ide_drive_t *drive = idkp->drive; 233 ide_drive_t *drive = idkp->drive;
234 234
235 ide_debug_log(IDE_DBG_FUNC, "Call %s\n", __func__); 235 ide_debug_log(IDE_DBG_FUNC, "enter");
236 236
237 if (idkp->openers == 1) 237 if (idkp->openers == 1)
238 drive->disk_ops->flush(drive); 238 drive->disk_ops->flush(drive);