1282
1280
/* DBL_DIG is enough to print '-[digits].E+###' */
1283
1281
char str_nr[DBL_DIG + 8];
1284
1282
uint32_t str_len= snprintf(str_nr, sizeof(str_nr), "%g", nr);
1285
make_truncated_value_warning(session, level, str_nr, str_len, ts_type,
1283
make_truncated_value_warning(*session, level, str_ref(str_nr, str_len), ts_type, field_name);