[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1268292100.11761.1.camel@Joe-Laptop.home>
Date: Wed, 10 Mar 2010 23:21:40 -0800
From: Joe Perches <joe@...ches.com>
To: OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
Cc: Andy Shevchenko <andy.shevchenko@...il.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 4/5] fs: fat: use hex_asc_lo/hex_asc_hi instead of
custom one
On Thu, 2010-03-11 at 08:18 +0900, OGAWA Hirofumi wrote:
> Andy Shevchenko <andy.shevchenko@...il.com> writes:
>
> > if (uni_xlate == 1) {
> > - *op = ':';
> > - for (k = 4; k > 0; k--) {
> > - nc = ec & 0xF;
> > - op[k] = nc > 9 ? nc + ('a' - 10)
> > - : nc + '0';
> > - ec >>= 4;
> > - }
> > - op += 5;
> > + *op++ = ':';
> > + *op++ = hex_asc_hi(ec >> 8);
> > + *op++ = hex_asc_lo(ec >> 8);
> > + *op++ = hex_asc_hi(ec);
> > + *op++ = hex_asc_lo(ec);
> > len -= 5;
>
> Why doesn't this use pack_hex_byte()?
or snprintf
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists