svn commit: r324305 - head/sys/amd64/amd64

Konstantin Belousov kib at FreeBSD.org
Thu Oct 5 12:01:41 UTC 2017


Author: kib
Date: Thu Oct  5 12:01:39 2017
New Revision: 324305
URL: https://svnweb.freebsd.org/changeset/base/324305

Log:
  Correct format specifiers in the debug code.
  
  Requested by:	bde
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/amd64/amd64/sys_machdep.c

Modified: head/sys/amd64/amd64/sys_machdep.c
==============================================================================
--- head/sys/amd64/amd64/sys_machdep.c	Thu Oct  5 11:56:04 2017	(r324304)
+++ head/sys/amd64/amd64/sys_machdep.c	Thu Oct  5 12:01:39 2017	(r324305)
@@ -558,7 +558,7 @@ amd64_get_ldt(td, uap)
 	struct user_segment_descriptor *lp;
 
 #ifdef	DEBUG
-	printf("amd64_get_ldt: start=%d num=%d descs=%p\n",
+	printf("amd64_get_ldt: start=%u num=%u descs=%p\n",
 	    uap->start, uap->num, (void *)uap->descs);
 #endif
 
@@ -594,7 +594,7 @@ amd64_set_ldt(struct thread *td, struct i386_ldt_args 
 	unsigned int largest_ld, i;
 
 #ifdef	DEBUG
-	printf("amd64_set_ldt: start=%d num=%d descs=%p\n",
+	printf("amd64_set_ldt: start=%u num=%u descs=%p\n",
 	    uap->start, uap->num, (void *)uap->descs);
 #endif
 	mdp = &td->td_proc->p_md;


More information about the svn-src-all mailing list