dev_param_int_ro
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 10 lines · Herve Codina
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_roexpect int as value and calling asprintf using "%llu" format and int parameter does not give expected result.
Quoted 7 lines
We need to add a specific
dev_add_param_int_rofunction for long long. What function name should be used ?
-dev_add_param_intll_ro
-dev_add_param_llint_ro
-dev_add_param_ll_roI can do this small patch according to choosen function name.
So many options ;)
dev_add_param_llint_ro sounds best to me.
Sascha
Signature · 9 lines
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 [email protected] http://lists.infradead.org/mailman/listinfo/barebox