X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=libdivecomputer.c;h=9d4c1065a3817ce046798448b7c7a39a2a10be2a;hb=549ad65bcb39e95c4deae0b77eb2476efa53df43;hp=b1c86c5ee8d378ad1852a88e7d396d88885b78a1;hpb=4c6f142e85969708983e2ffd7d413e01ac84b176;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;