From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 18 Apr 2012 09:24:50 +0200 From: Antonio Quartulli Message-ID: <20120418072449.GE27966@ritirata.org> References: <1334663907-22725-1-git-send-email-ordex@autistici.org> <1334663907-22725-11-git-send-email-ordex@autistici.org> <20120417.224746.802445483718191876.davem@davemloft.net> <20120418064659.GC27966@ritirata.org> <20120418070134.GD27966@ritirata.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="C94crkcyjafcjHxo" Content-Disposition: inline In-Reply-To: <20120418070134.GD27966@ritirata.org> Subject: Re: [B.A.T.M.A.N.] [PATCH 10/11] batman-adv: print OGM seq numbers as unsigned long Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Miller Cc: netdev@vger.kernel.org, b.a.t.m.a.n@lists.open-mesh.org --C94crkcyjafcjHxo Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 18, 2012 at 09:01:35AM +0200, Antonio Quartulli wrote: > On Wed, Apr 18, 2012 at 08:47:00AM +0200, Antonio Quartulli wrote: > > On Tue, Apr 17, 2012 at 10:47:46 -0400, David Miller wrote: > > > From: Antonio Quartulli > > > Date: Tue, 17 Apr 2012 13:58:26 +0200 > > >=20 > > > > OGM sequence numbers are declared as uint32_t and so they have to p= rinted > > > > using %u instead of %d in order to avoid wrong representations. > > > >=20 > > > > Signed-off-by: Antonio Quartulli > > >=20 > > > Fix this commit message subject, "%u" is "unsigned int" not > > > "unsigned long" > > >=20 > > > "unsigned long" would be "%lu" >=20 > There is a problem here. On my machine (x86_64) I have: >=20 > typedef unsigned int __u32; > typedef __u32 uint32_t; >=20 >=20 > So I should use %u to print my uint32_t variable (as I reported in my com= mit > message). >=20 > Probably this is not the case on each and every architecture? > If so, how could I handle it? Ok. After digging in the code again I understood that the problem is either= in my brain and in the commit subject. I'll fix both. Cheers, --=20 Antonio Quartulli =2E.each of us alone is worth nothing.. Ernesto "Che" Guevara --C94crkcyjafcjHxo Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQEcBAEBAgAGBQJPjmxBAAoJEFMQTLzJFOZFF+gH/jhv/ONO/l4Z1NJN8G08CQXr 7VMwLcuSyK+InjoNvZ47nFfJfzn3EwjdiFKvTUhVBgr43NsRvk5o9gWppA8z/XRc IBFmTMGiOXjvc/W+9p06PywEa7uyCg1pHMZHDgsREhk3+KX7wsdmckG3gJppYV0f gVeDMZKdhfg8o1ZihWCdFIZPBSYs1xov/uNAEFci4tDtT0KwKgF3NuQLG74BD5JJ rJhjFaFLd4ZtpRlVJhdS2Prdk//XUgBGpOgQrCxeWippQZlenFaYUnhl8KJkuuJu PY8KYfGtSFsXP//QwNwjSlWoeHSKtr11EesoS8Jb5vKitTD6aesQJ2ACjZNMA3U= =OeLZ -----END PGP SIGNATURE----- --C94crkcyjafcjHxo--