* limitations under the License.
*/
+#include <inttypes.h>
#include <sqlite3.h>
#include <SensorRecorderTypes.h>
#include "../TypesInternal.h"
}
/* TODO: check the timestamps.. they look strange.. */
- g_snprintf(buffer, sizeof(buffer), "(%llu, %llu, %d, %d, %.3f, %.3f),",
+ g_snprintf(buffer, sizeof(buffer), "(%" PRIu64 ", %" PRIu64 ", %d, %d, %.3f, %.3f),",
i == 0 ? __baseline.timestamp : SEC_TO_MS(static_cast<uint64_t>(eventData->diffs[i-1].timestamp)),
SEC_TO_MS(static_cast<uint64_t>(eventData->diffs[i].timestamp)),
eventData->diffs[i].walk_steps,
* limitations under the License.
*/
+#include <inttypes.h>
#include <sqlite3.h>
#include <SensorRecorderTypes.h>
#include "../TypesInternal.h"
IF_FAIL_VOID(eventTime - __lastEventTime >= RESAMPLING_INTERVAL);
char buffer[64];
- g_snprintf(buffer, sizeof(buffer), "(%llu, %.5f),", eventTime, pressure);
+ g_snprintf(buffer, sizeof(buffer), "(%" PRIu64 ", %.5f),", eventTime, pressure);
_D("[%u] %s", __cacheCount, buffer);
__insertionQuery += buffer;
* limitations under the License.
*/
+#include <inttypes.h>
#include <sqlite3.h>
#include <SensorRecorderTypes.h>
#include "../TypesInternal.h"
IF_FAIL_VOID(startTime > 0 && endTime > startTime);
char buffer[64];
- g_snprintf(buffer, sizeof(buffer), "(%llu, %llu),", startTime, endTime);
+ g_snprintf(buffer, sizeof(buffer), "(%" PRIu64 ", %" PRIu64 "),", startTime, endTime);
__insertionQuery += buffer;
}