Author: nwhitehorn
Date: Tue Jul 13 19:27:20 2010
New Revision: 210010
URL: http://svn.freebsd.org/changeset/base/210010

Log:
  Fix build on architectures where PAGE_SIZE is a long (sparc64, powerpc).

Modified:
  head/sys/dev/bktr/bktr_core.c

Modified: head/sys/dev/bktr/bktr_core.c
==============================================================================
--- head/sys/dev/bktr/bktr_core.c       Tue Jul 13 17:24:30 2010        
(r210009)
+++ head/sys/dev/bktr/bktr_core.c       Tue Jul 13 19:27:20 2010        
(r210010)
@@ -538,7 +538,7 @@ bktr_store_address(unit, BKTR_MEM_BUF,  
 
        if ( bootverbose ) {
                printf("%s: buffer size %d, addr %p\n",
-                       bktr_name(bktr), BROOKTREE_ALLOC,
+                       bktr_name(bktr), (int)BROOKTREE_ALLOC,
                        (void *)(uintptr_t)vtophys(buf));
        }
 
@@ -1808,9 +1808,8 @@ video_ioctl( bktr_ptr_t bktr, int unit, 
                                        bktr->bigbuf = buf;
                                        bktr->alloc_pages = temp;
                                        if (bootverbose)
-                                               printf(
-                               "%s: ioctl: Allocating %d bytes\n",
-                                                       bktr_name(bktr), 
temp*PAGE_SIZE);
+                                               printf("%s: ioctl: Allocating 
%d bytes\n",
+                                                       bktr_name(bktr), 
(int)(temp*PAGE_SIZE));
                                }
                                else
                                        error = ENOMEM;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to