git » libfilo » commit 00b825b

Use long long for displaying off_t in debugging prints.

author Alberto Bertogli
2005-07-23 20:08:18 UTC
committer Alberto Bertogli
2005-07-23 20:08:18 UTC
parent 8a958f2471eb4adb47427c07a79a744dadad8fb2

Use long long for displaying off_t in debugging prints.

libfilo.c +2 -2

diff --git a/libfilo.c b/libfilo.c
index 645a8df..88bd987 100644
--- a/libfilo.c
+++ b/libfilo.c
@@ -39,13 +39,13 @@ void printfl(filock_t *fl)
 
 	fprintf(stderr, "Locked:\n");
 	for (lr = fl->locked; lr != NULL; lr = lr->next) {
-		fprintf(stderr, "\t%lu -> %lu (%u) (%lu)\n", lr->start,
+		fprintf(stderr, "\t%llu -> %llu (%u) (%lu)\n", lr->start,
 				lr->end, lr->mode, lr->owner);
 	}
 
 	fprintf(stderr, "Waiter:\n");
 	for (wr = fl->waiters; wr != NULL; wr = wr->next) {
-		fprintf(stderr, "\t%lu -> %lu (%u) (%lu)\n", wr->start,
+		fprintf(stderr, "\t%llu -> %llu (%u) (%lu)\n", wr->start,
 				wr->end, wr->mode, wr->owner);
 	}
 }