Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Nov 2017 03:13:15 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325352 - head/sys/powerpc/mpc85xx
Message-ID:  <201711030313.vA33DFv1007564@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Fri Nov  3 03:13:15 2017
New Revision: 325352
URL: https://svnweb.freebsd.org/changeset/base/325352

Log:
  Fix integer type and format in debug print
  
  gcc complains "cast to pointer from integer of different size".  phandle_t is
  *always* a uint32_t, so treat it as such, not as a pointer.  Fixes 64-bit build.

Modified:
  head/sys/powerpc/mpc85xx/lbc.c

Modified: head/sys/powerpc/mpc85xx/lbc.c
==============================================================================
--- head/sys/powerpc/mpc85xx/lbc.c	Fri Nov  3 01:09:35 2017	(r325351)
+++ head/sys/powerpc/mpc85xx/lbc.c	Fri Nov  3 03:13:15 2017	(r325352)
@@ -651,8 +651,8 @@ lbc_attach(device_t dev)
 			free(di, M_LBC);
 			continue;
 		}
-		debugf("added child name='%s', node=%p\n", di->di_ofw.obd_name,
-		    (void *)child);
+		debugf("added child name='%s', node=%x\n", di->di_ofw.obd_name,
+		    child);
 		device_set_ivars(cdev, di);
 	}
 



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