[PATCH] Fix bunch of printf warnings

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Holger Hans Peter Freyther holger at freyther.de
Wed Oct 22 21:32:49 UTC 2014


On Wed, Oct 22, 2014 at 04:50:08PM +0200, Max wrote:

Hi,

>  	gh = msgb_l3(msg);
>  	if (msgb_l3len(msg) - sizeof(*gh) != 1) {
> -		LOGP(DMSC, LOGL_ERROR, "Assignment Compl invalid: %u\n",
> +		LOGP(DMSC, LOGL_ERROR, "Assignment Compl invalid: %lu\n",
>  		     msgb_l3len(msg) - sizeof(*gh));

it looks like a candidate for ping-pong games on 32bit/64bit userland
on GNU/Linux. What is the type here? unsigned int - size_t?

holger





More information about the OpenBSC mailing list