From: Sascha Hauer <s.hauer@pengutronix.de>
To: Herve Codina <herve.codina@celad.com>
Cc: barebox@lists.infradead.org
Subject: Re: dev_param_int_ro
Date: Wed, 11 Jun 2014 19:55:37 +0200 [thread overview]
Message-ID: <20140611175537.GB15686@pengutronix.de> (raw)
In-Reply-To: <53983ED3.7070401@celad.com>
On Wed, Jun 11, 2014 at 01:34:43PM +0200, Herve Codina wrote:
> 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.
So many options ;)
dev_add_param_llint_ro sounds best to me.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2014-06-11 17:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-11 11:34 dev_param_int_ro Herve Codina
2014-06-11 17:55 ` Sascha Hauer [this message]
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=20140611175537.GB15686@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=herve.codina@celad.com \
/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