From owner-svn-src-head@freebsd.org Fri Nov 3 03:13:16 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AE638E6A2D5; Fri, 3 Nov 2017 03:13:16 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 77DBC74F00; Fri, 3 Nov 2017 03:13:16 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vA33DFEJ007565; Fri, 3 Nov 2017 03:13:15 GMT (envelope-from jhibbits@FreeBSD.org) Received: (from jhibbits@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vA33DFv1007564; Fri, 3 Nov 2017 03:13:15 GMT (envelope-from jhibbits@FreeBSD.org) Message-Id: <201711030313.vA33DFv1007564@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhibbits set sender to jhibbits@FreeBSD.org using -f From: Justin Hibbits Date: Fri, 3 Nov 2017 03:13:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r325352 - head/sys/powerpc/mpc85xx X-SVN-Group: head X-SVN-Commit-Author: jhibbits X-SVN-Commit-Paths: head/sys/powerpc/mpc85xx X-SVN-Commit-Revision: 325352 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Nov 2017 03:13:16 -0000 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); }