Use PRIu64 to avoid the following compiler warning:
CC src/hardware/baylibre-acme/gpio.lo
protocol.c: In function 'bl_acme_set_shunt':
protocol.c:341:2: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t' [-Wformat=]
g_fprintf(fd, "%llu\n", MOHM_TO_UOHM(shunt));
^
}
g_string_free(path, TRUE);
- g_fprintf(fd, "%llu\n", MOHM_TO_UOHM(shunt));
+ g_fprintf(fd, "%" PRIu64 "\n", MOHM_TO_UOHM(shunt));
/*
* XXX There's no g_fclose() in GLib. This seems to work,
* but is it safe?