Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Sep 2010 16:27:14 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r212210 - head/sys/dev/twa
Message-ID:  <201009041627.o84GREfL021797@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Sat Sep  4 16:27:14 2010
New Revision: 212210
URL: http://svn.freebsd.org/changeset/base/212210

Log:
  Fix a compile problem introduced with r212008 on 32bit:
  
  Both deadline and current_time are time_seconds (+ utc_offset())
  casted to unsigned long long. No need to cast to or print as pointers.
  
  MFC after:	4 days

Modified:
  head/sys/dev/twa/tw_osl_freebsd.c

Modified: head/sys/dev/twa/tw_osl_freebsd.c
==============================================================================
--- head/sys/dev/twa/tw_osl_freebsd.c	Sat Sep  4 16:06:01 2010	(r212209)
+++ head/sys/dev/twa/tw_osl_freebsd.c	Sat Sep  4 16:27:14 2010	(r212210)
@@ -472,7 +472,7 @@ twa_watchdog(TW_VOID *arg)
 			(my_req->deadline < current_time)) {
 			tw_cl_set_reset_needed(ctlr_handle);
 #ifdef    TW_OSL_DEBUG
-			device_printf((sc)->bus_dev, "Request %d timed out! d = %p, c = %p\n", i, (void*)my_req->deadline, (void*)current_time);
+			device_printf((sc)->bus_dev, "Request %d timed out! d = %llu, c = %llu\n", i, my_req->deadline, current_time);
 #else  /* TW_OSL_DEBUG */
 			device_printf((sc)->bus_dev, "Request %d timed out!\n", i);
 #endif /* TW_OSL_DEBUG */



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