Messages in this thread |  | | Subject | Re: [PATCH] lib/vsprintf.c: increase the size of the field_width variable | From | Maurizio Lombardi <> | Date | Thu, 10 Sep 2015 10:39:10 +0200 |
| |
On 09/10/2015 09:38 AM, Joe Perches wrote:ing will be printed. > > Maurizio, did you try the patch I posted? > I think it'll work, but it doesn't fix the > fundamental issue of %*pbl with large bitmaps.
I tested your patch, it works for the simple cases where bits are set below the S16_MAX limit, example:
# modprobe scsi-debug dev_size_mb=256 lbpu=1 lbpws10=1 # vgcreate tsvg /dev/sdb # cat /sys/bus/pseudo/drivers/scsi_debug/map 0-15 <--- OK!
# lvcreate -V200m -l99%FREE -T tsvg/pool -n lv1 --discards ignore
# cat /sys/bus/pseudo/drivers/scsi_debug/map 0-31,2048-2055 <---- NO! It should be "0-31,2048-2055,501760-501871"!
I think it's misleading. Can I suggest as a temporary solution to restore the old bitmap_scnlistprintf() function?
> > Perhaps the thin wrapper conversions in lib/bitmap.c > in that commit for bitmap_scnprintf, bscnl_emit, and > bitmap_scnlistprintf should be reverted. > >
Thanks, Maurizio Lombardi
|  |