From: Mohamed Barwani Date: Tue, 30 Oct 2007 03:07:42 +0000 (+0000) Subject: Remove a redundant line. X-Git-Tag: v1.1.0~430 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=6f902224941d7f9ce1431a754a6e279b79eea95c Remove a redundant line. Merge of master-melb:xfs-cmds:29978a by kenmcd. Removed a redundant line and added some extra debug info. --- diff --git a/src/bulkstat_unlink_test.c b/src/bulkstat_unlink_test.c index ef5545cb..91631406 100644 --- a/src/bulkstat_unlink_test.c +++ b/src/bulkstat_unlink_test.c @@ -1,5 +1,5 @@ /* - * $Id: bulkstat_unlink_test.c,v 1.2 2007/10/26 16:05:04 xaiki.longdrop.melbourne.sgi.com Exp $ + * $Id: bulkstat_unlink_test.c,v 1.3 2007/10/30 03:07:42 mohamedb.longdrop.melbourne.sgi.com Exp $ * Test bulkstat doesn't returned unlinked inodes. * Mark Goodwin Fri Jul 20 09:13:57 EST 2007 */ @@ -48,7 +48,6 @@ main(int argc, char *argv[]) } - iterations = atoi(argv[optind++]); iterations = atoi(argv[optind++]); nfiles = atoi(argv[optind++]); stride = atoi(argv[optind++]); @@ -75,13 +74,13 @@ main(int argc, char *argv[]) a.ocount = &count; if (mkdir(dirname, 0755) < 0) { - printf("Warning (%s,%d), mkdir failed.\n", __FILE__, __LINE__); + printf("Warning (%s,%d), mkdir(%s) failed.\n", __FILE__, __LINE__, dirname); perror(dirname); exit(1); } if ((fd[nfiles] = open(dirname, O_RDONLY)) < 0) { - printf("Warning (%s,%d), open failed.\n", __FILE__, __LINE__); + printf("Warning (%s,%d), open(%s) failed.\n", __FILE__, __LINE__, dirname); perror(dirname); exit(1); } @@ -98,7 +97,7 @@ main(int argc, char *argv[]) for (i=0; i < nfiles; i++) { /* Open the files */ sprintf(fname, "%s/file%06d", dirname, i); if ((fd[i] = open(fname, O_RDWR | O_CREAT | O_TRUNC, 0644)) < 0) { - printf("Warning (%s,%d), open failed.\n", __FILE__, __LINE__); + printf("Warning (%s,%d), open(%s) failed.\n", __FILE__, __LINE__, fname); perror(fname); exit(1); }