mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Yi Qingliang <niqingliang2003@gmail.com>
To: barebox@lists.infradead.org
Subject: strtoull_suffix
Date: Sun, 29 Sep 2013 19:57:39 +0800	[thread overview]
Message-ID: <5705070.dCeIF7ZgD5@yiqingliang-pc> (raw)

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@gmail.com

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2013-09-29 12:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-29 11:57 Yi Qingliang [this message]
2013-09-30  8:13 ` strtoull_suffix Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5705070.dCeIF7ZgD5@yiqingliang-pc \
    --to=niqingliang2003@gmail.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox