Date: Sat, 28 May 2005 03:48:35 GMT From: "Christian S.J. Peron" <csjp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 77604 for review Message-ID: <200505280348.j4S3mZ5E051065@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=77604 Change 77604 by csjp@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');
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505280348.j4S3mZ5E051065>