PERFORCE change 77604 for review

Christian S.J. Peron csjp at FreeBSD.org
Fri May 27 20:48:36 PDT 2005


http://perforce.freebsd.org/chv.cgi?CH=77604

Change 77604 by csjp at csjp_xor on 2005/05/28 03:48:19

	use warnx instead of printf and include the pathname in the warning.
	This seems like to more appropriate way to handle warnings.

Affected files ...

.. //depot/projects/trustedbsd/mac/usr.sbin/getfhash/getfhash.c#10 edit

Differences ...

==== //depot/projects/trustedbsd/mac/usr.sbin/getfhash/getfhash.c#10 (text+ko) ====

@@ -235,7 +235,7 @@
 	if (Wflag) {
 		(*checksum)(pathname, &digest[0]);
 		if (memcmp(&digest[0], &sum.vs_sum[0], nbytes) != 0) {
-			printf(" (conflicting checksum)");
+			warnx("%s: checksum discrepancy", pathname);
 		}
 	}
 	putchar('\n');


More information about the p4-projects mailing list