From 437784413ff065032ce27b72c0c39d201ff7e1ee Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Tue, 20 Jul 2021 15:55:33 +0800 Subject: [PATCH] fix arm compilation error --- tests/examples/c/schemaless.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/examples/c/schemaless.c b/tests/examples/c/schemaless.c index 50bee7887f..d6450914df 100644 --- a/tests/examples/c/schemaless.c +++ b/tests/examples/c/schemaless.c @@ -1,5 +1,6 @@ #include "taos.h" #include "taoserror.h" +#include "os.h" #include #include @@ -80,7 +81,7 @@ int main(int argc, char* argv[]) { int64_t begin = getTimeInUs(); int32_t code = taos_insert_lines(taos, lines, numSuperTables * numChildTables * numRowsPerChildTable); int64_t end = getTimeInUs(); - printf("code: %d, %s, %ld\n", code, tstrerror(code), end-begin); + printf("code: %d, %s. time used: %"PRId64"\n", code, tstrerror(code), end-begin); char* lines_000_0[] = { "sta1,id=sta1_1,t0=true,t1=127i8,t2=32767i16,t3=2147483647i32,t4=9223372036854775807i64,t5=255u8,t6=32770u16,t7=2147483699u32,t8=9223372036854775899u64,t9=11.12345f32,t10=22.123456789f64,t11=\"binaryTagValue\",t12=L\"ncharTagValue\" c0=true,c1=127i8,c2=32767i16,c3=2147483647i32,c4=9223372036854775807i64,c5=255u8,c6=32770u16,c7=2147483699u32,c8=9223372036854775899u64,c9=11.12345f32,c10=22.123456789f64,c11=\"binaryValue\",c12=L\"ncharValue\" 1626006833639000us"