mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* dev_param_int_ro
@ 2014-06-11 11:34 Herve Codina
  2014-06-11 17:55 ` dev_param_int_ro Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Herve Codina @ 2014-06-11 11:34 UTC (permalink / raw)
  To: barebox

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-11 17:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-11 11:34 dev_param_int_ro Herve Codina
2014-06-11 17:55 ` dev_param_int_ro Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox