diff options
author | Petr Tesarik <ptesarik@suse.cz> | 2008-08-05 18:17:02 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-08-05 18:17:02 +0200 |
commit | 938bb03d188a1e688fb0bcae49788f540193e80a (patch) | |
tree | 75cbe491a4537acab55b37e24384f6a7915b8e73 /fs | |
parent | c5bfc3757f1d843a8e1261840c1f53c5062f8e92 (diff) | |
download | op-kernel-dev-938bb03d188a1e688fb0bcae49788f540193e80a.zip op-kernel-dev-938bb03d188a1e688fb0bcae49788f540193e80a.tar.gz |
ide-cd: fix endianity for the error message in cdrom_read_capacity
Aesthetic regards aside, commit e8e7b9eb11c34ee18bde8b7011af41938d1ad667
still leaves a bug in the error message, because it uses the unconverted
big-endian value for printk.
Fix this by using a local variable in machine byte order. The result is
correct, more readable, and also produces slightly shorter code on i386.
Signed-off-by: Petr Tesarik <ptesarik@suse.cz>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: <stable@kernel.org>
Acked-by: Borislav Petkov <petkovbb@gmail.com>
[bart: __u32 -> u32]
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions