Changeset 1076


Ignore:
Timestamp:
May 29, 2008, 1:00:11 AM (10 years ago)
Author:
Daniel Kahn Gillmor
Message:

testlocking: switch error messages to perror to get info about errno as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/testlocking/testlocking.c

    r1075 r1076  
    3232  flock.l_len = 1;
    3333  if (0 != fcntl(fd, F_SETLK64, &flock)) {
    34     fprintf(stderr, "read lock failed\n");
     34    perror("read lock failed");
    3535    return 1;
    3636  }
     
    4040  if (0 != fcntl(fd, F_SETLK64, &flock)) {
    4141    /* fails here when used on CIFS share mounted without nobrl option */
    42     fprintf(stderr, "write lock failed\n");
     42    perror("write lock failed");
    4343    return 1;
    4444  }
Note: See TracChangeset for help on using the changeset viewer.