mirror of
https://github.com/darlinghq/darling-libkqueue.git
synced 2024-11-23 11:49:50 +00:00
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:
parent
09aa72ecd1
commit
650452c28f
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user