Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Sep 2002 17:13:59 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 16928 for review
Message-ID:  <200209020013.g820DxTF069187@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=16928

Change 16928 by peter@peter_mckinley on 2002/09/01 17:13:57

	Fix up warning printfs, some of these are 64 bit time_t related.

Affected files ...

.. //depot/projects/ia64/sys/dev/acpica/acpi_pcib.c#10 edit
.. //depot/projects/ia64/sys/dev/acpica/acpi_resource.c#4 edit
.. //depot/projects/ia64/sys/ia64/ia64/clock.c#9 edit
.. //depot/projects/ia64/sys/ufs/ffs/ffs_snapshot.c#11 edit

Differences ...

==== //depot/projects/ia64/sys/dev/acpica/acpi_pcib.c#10 (text+ko) ====

@@ -216,8 +216,8 @@
 		      AcpiFormatException(status));
 	/* this is not fatal, since it may be hardwired */
     }
-    ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES, "got %d bytes for %s._CRS\n", crsbuf.Length, acpi_name(lnkdev)));
-    ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES, "got %d bytes for %s._PRS\n", prsbuf.Length, acpi_name(lnkdev)));
+    ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES, "got %ld bytes for %s._CRS\n", crsbuf.Length, acpi_name(lnkdev)));
+    ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES, "got %ld bytes for %s._PRS\n", prsbuf.Length, acpi_name(lnkdev)));
 
     /*
      * The interrupt may already be routed, so check _CRS first.  We don't check the

==== //depot/projects/ia64/sys/dev/acpica/acpi_resource.c#4 (text+ko) ====

@@ -87,7 +87,7 @@
 		   acpi_name(handle), AcpiFormatException(status));
 	return_ACPI_STATUS(status);
     }
-    ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES, "%s - got %d bytes of resources\n",
+    ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES, "%s - got %ld bytes of resources\n",
 		      acpi_name(handle), buf.Length));
     set->set_init(dev, &context);
 

==== //depot/projects/ia64/sys/ia64/ia64/clock.c#9 (text+ko) ====

@@ -353,7 +353,7 @@
 			deltat = -deltat;
 		if (deltat < 2 * SECDAY)
 			return;
-		printf("WARNING: clock %s %d days",
+		printf("WARNING: clock %s %ld days",
 		    ts.tv_sec < base ? "lost" : "gained", deltat / SECDAY);
 	}
 bad:

==== //depot/projects/ia64/sys/ufs/ffs/ffs_snapshot.c#11 (text+ko) ====

@@ -473,8 +473,8 @@
 	if (collectsnapstats && starttime.tv_sec > 0) {
 		nanotime(&endtime);
 		timespecsub(&endtime, &starttime);
-		printf("%s: suspended %d.%03ld sec, redo %ld of %d\n",
-		    vp->v_mount->mnt_stat.f_mntonname, endtime.tv_sec,
+		printf("%s: suspended %ld.%03ld sec, redo %ld of %d\n",
+		    vp->v_mount->mnt_stat.f_mntonname, (long)endtime.tv_sec,
 		    endtime.tv_nsec / 1000000, redo, fs->fs_ncg);
 	}
 	if (sbp == NULL)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




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