diff options
author | Borislav Petkov <petkovbb@gmail.com> | 2009-01-02 13:34:47 +0100 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 12:46:19 +0100 |
commit | 088b1b88609ce89b6ab19d114cdbec94a44aa22c (patch) | |
tree | 2c4f7769e8b2854bcb028dda99c34fe7de3847ae /drivers/ide/ide-gd.c | |
parent | 70775e9c627d7094189b96d73fffced6dab30b30 (diff) | |
download | linux-3.10-088b1b88609ce89b6ab19d114cdbec94a44aa22c.tar.gz linux-3.10-088b1b88609ce89b6ab19d114cdbec94a44aa22c.tar.bz2 linux-3.10-088b1b88609ce89b6ab19d114cdbec94a44aa22c.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide-gd.c b/drivers/ide/ide-gd.c index 04710941990..c51a35093ae 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) drive = idkp->drive; - ide_debug_log(IDE_DBG_FUNC, "Call %s\n", __func__); + ide_debug_log(IDE_DBG_FUNC, "enter"); idkp->openers++; @@ -232,7 +232,7 @@ static int ide_gd_release(struct gendisk *disk, fmode_t mode) struct ide_disk_obj *idkp = ide_drv_g(disk, ide_disk_obj); ide_drive_t *drive = idkp->drive; - ide_debug_log(IDE_DBG_FUNC, "Call %s\n", __func__); + ide_debug_log(IDE_DBG_FUNC, "enter"); if (idkp->openers == 1) drive->disk_ops->flush(drive); |