X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=libdivecomputer.c;h=9d4c1065a3817ce046798448b7c7a39a2a10be2a;hb=ff0209a5b42ced7d8b9ef9c5d84cbc5a4d84a0ac;hp=b1c86c5ee8d378ad1852a88e7d396d88885b78a1;hpb=9b9355c770f39af6e140432645ca9f4b134cd1f2;p=ext%2Fsubsurface.git diff --git a/libdivecomputer.c b/libdivecomputer.c index b1c86c5..9d4c106 100644 --- a/libdivecomputer.c +++ b/libdivecomputer.c @@ -1,5 +1,7 @@ #include #include +#include +#include #include "dive.h" #include "divelist.h" @@ -433,8 +435,8 @@ static void event_cb(device_t *device, device_event_t event, const void *data, v break; case DEVICE_EVENT_CLOCK: devdata->clock = *clock; - printf("Event: systime=%lld, devtime=%u\n", - clock->systime, clock->devtime); + printf("Event: systime=%"PRId64", devtime=%u\n", + (uint64_t)clock->systime, clock->devtime); break; default: break;