mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Herve Codina <herve.codina@celad.com>
To: barebox@lists.infradead.org
Subject: dev_param_int_ro
Date: Wed, 11 Jun 2014 13:34:43 +0200	[thread overview]
Message-ID: <53983ED3.7070401@celad.com> (raw)

Hi,

We can have parameters based on long long int.
For instance :
dev_add_param_int_ro(&mtd->class_dev, "size", mtd->size, "%llu");

This is not working because dev_add_param_int_ro expect int as value and
calling asprintf using "%llu" format and int parameter does not give
expected result.

We need to add a specific dev_add_param_int_ro function for long long.
What function name should be used ?
- dev_add_param_intll_ro
- dev_add_param_llint_ro
- dev_add_param_ll_ro

I can do this small patch according to choosen function name.

Best regards,
Herve



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

             reply	other threads:[~2014-06-11 11:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-11 11:34 Herve Codina [this message]
2014-06-11 17:55 ` dev_param_int_ro 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=53983ED3.7070401@celad.com \
    --to=herve.codina@celad.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