Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jun 2013 01:53:18 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        hiren.panchasara@gmail.com
Cc:        freebsd-current@FreeBSD.org, ohartman@zedat.fu-berlin.de
Subject:   Re: revision 252095: kerenl fails to compile: nfs_clstate.c:5160:33: error: format specifies type 'long long' but the argument has type 'uint64_t'
Message-ID:  <20130623.015318.10019857672947305.hrs@allbsd.org>
In-Reply-To: <CALCpEUG98BmK5Hh58xWPr4d39VgptpoTfsjnEj-1Phk5VM213g@mail.gmail.com>
References:  <20130622150856.5e6f9c90@thor.walstatt.dyndns.org> <CALCpEUG98BmK5Hh58xWPr4d39VgptpoTfsjnEj-1Phk5VM213g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart0(Sun_Jun_23_01_53_18_2013_791)--
Content-Type: Multipart/Mixed;
 boundary="--Next_Part(Sun_Jun_23_01_53_18_2013_969)--"
Content-Transfer-Encoding: 7bit

----Next_Part(Sun_Jun_23_01_53_18_2013_969)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

hiren panchasara <hiren.panchasara@gmail.com> wrote
  in <CALCpEUG98BmK5Hh58xWPr4d39VgptpoTfsjnEj-1Phk5VM213g@mail.gmail.com>:

hi> On Jun 22, 2013 6:09 AM, "O. Hartmann" <ohartman@zedat.fu-berlin.de> wrote:
hi> >
hi> >
hi> > Just for notice.
hi> >
hi> > The most recent sources fail to compile a kernel successfully:
hi>
hi> http://svnweb.freebsd.org/changeset/base/252074
hi>
hi> This change is the culprit.

 The attached patch should fix it.

-- Hiroki

----Next_Part(Sun_Jun_23_01_53_18_2013_969)--
Content-Type: Text/X-Patch; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="nfs.diff"

Index: sys/fs/nfsclient/nfs_clstate.c
===================================================================
--- sys/fs/nfsclient/nfs_clstate.c	(revision 252096)
+++ sys/fs/nfsclient/nfs_clstate.c	(working copy)
@@ -77,6 +77,7 @@
  *     until they succeed or an unmount/recovery occurs.
  *     (Since we are done with them, they do not need to be recovered.)
  */
+#include <machine/_inttypes.h>

 #ifndef APPLEKEXT
 #include <fs/nfs/nfsport.h>
@@ -5156,9 +5157,9 @@
 			    lyp->nfsly_fhlen, 0, flp->nfsfl_off, len,
 			    lyp->nfsly_lastbyte, &lyp->nfsly_stateid,
 			    NFSLAYOUT_NFSV4_1_FILES, 0, NULL, cred, p, NULL);
-			NFSCL_DEBUG(4, "layoutcommit err=%d off=%qd len=%qd "
-			    "lastbyte=%qd\n", error, flp->nfsfl_off, len,
-			    lyp->nfsly_lastbyte);
+			NFSCL_DEBUG(4, "layoutcommit err=%d off=%" PRIu64
+			    " len=%" PRIu64 "lastbyte=%" PRIu64 "\n", error,
+			    flp->nfsfl_off, len, lyp->nfsly_lastbyte);
 			if (error == NFSERR_NOTSUPP) {
 				/* If not supported, don't bother doing it. */
 				NFSLOCKMNT(nmp);

----Next_Part(Sun_Jun_23_01_53_18_2013_969)----

----Security_Multipart0(Sun_Jun_23_01_53_18_2013_791)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (FreeBSD)

iEYEABECAAYFAlHF1n4ACgkQTyzT2CeTzy15uQCeOOLjw15pOyXr4k9ykM0db+E4
pvYAoJX2d4BfKIq/PJ9s/QIfAL4q9D46
=y12V
-----END PGP SIGNATURE-----

----Security_Multipart0(Sun_Jun_23_01_53_18_2013_791)----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130623.015318.10019857672947305.hrs>