devc->timebase = (float) p / q;
switch (q) {
case 1:
- cmd = g_strdup_printf("%luS", p);
+ cmd = g_strdup_printf("%" PRIu64 "S", p);
break;
case 1000:
- cmd = g_strdup_printf("%luMS", p);
+ cmd = g_strdup_printf("%" PRIu64 "MS", p);
break;
case 1000000:
- cmd = g_strdup_printf("%luUS", p);
+ cmd = g_strdup_printf("%" PRIu64 "US", p);
break;
case 100000000:
- cmd = g_strdup_printf("%luNS", p);
+ cmd = g_strdup_printf("%" PRIu64 "NS", p);
break;
}
sr_dbg("Setting device timebase: TDIV %s.", cmd);
cmd = "";
switch (q) {
case 1:
- cmd = g_strdup_printf("%luV", p);
+ cmd = g_strdup_printf("%" PRIu64 "V", p);
break;
case 1000:
- cmd = g_strdup_printf("%luMV", p);
+ cmd = g_strdup_printf("%" PRIu64 "MV", p);
break;
case 100000:
- cmd = g_strdup_printf("%luUV", p);
+ cmd = g_strdup_printf("%" PRIu64 "UV", p);
break;
}
return siglent_sds_config_set(sdi, "C%d:VDIV %s", i + 1, cmd);
return ret;
}
}
- sr_err("Invalid probe factor: %"PRIu64".", p);
+ sr_err("Invalid probe factor: %" PRIu64 ".", p);
return SR_ERR_ARG;
}
}