strtoull_suffix

Yi Qingliang niqingliang2003 at gmail.com
Sun Sep 29 07:57:39 EDT 2013


the strtoull_suffix can't identify 'g' and 'm', but the 'memparse' in kernel 
can, do we should follow the kernel? 

indeed, i have problem about parsing following kernel parameter: 
nand_parts="512k(bl),512k(env),5m(mk),5m(sk),-(ubifs)

  37         switch (*end) {
  38         case 'G':
  39                 val *= 1024;
  40         case 'M':
  41                 val *= 1024;
  42         case 'k':
  43         case 'K':
  44                 val *= 1024;
  45                 end++;
  46         default:
  47                 break;
  48         }


-- 
Nanjing Jilong
Yi Qingliang
niqingliang2003 at gmail.com



More information about the barebox mailing list