Fix format string type mismatch

git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@475 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
This commit is contained in:
mheily 2011-04-14 00:25:27 +00:00
parent 09aa72ecd1
commit 650452c28f

View File

@ -340,7 +340,8 @@ test_kevent_regular_file(void)
/* Set file position to EOF-1 */ /* Set file position to EOF-1 */
kev2->data--; kev2->data--;
if ((curpos = lseek(fd, kev2->data, SEEK_SET)) != kev2->data) { if ((curpos = lseek(fd, kev2->data, SEEK_SET)) != kev2->data) {
printf("seek to %u failed with rv=%lu\n", kev2->data, curpos); printf("seek to %u failed with rv=%lu\n",
(unsigned int) kev2->data, curpos);
abort(); abort();
} }
@ -348,7 +349,8 @@ test_kevent_regular_file(void)
(void) kevent_get(kqfd); (void) kevent_get(kqfd);
kev2->data = curpos + 1; kev2->data = curpos + 1;
if ((curpos = lseek(fd, kev2->data, SEEK_SET)) != kev2->data) { if ((curpos = lseek(fd, kev2->data, SEEK_SET)) != kev2->data) {
printf("seek to %u failed with rv=%lu\n", kev2->data, curpos); printf("seek to %u failed with rv=%lu\n",
(unsigned int) kev2->data, curpos);
abort(); abort();
} }