memset(cmdstring, 0, sizeof(cmdstring));
cmdstring[0] = CMD_2250_SET_TRIGGERPOS_AND_BUFFER;
- sr_dbg("Capture ratio: %d.", devc->capture_ratio);
+ sr_dbg("Capture ratio: %" PRIu64 ".", devc->capture_ratio);
trig = devc->capture_ratio;
dso2250_set_triggerpos(trig,
devc->framesize != FRAMESIZE_SMALL, cmdstring, 2);
cmdstring[5] = (tmp >> 8) & 0xff;
/* Horizontal trigger position */
- sr_dbg("Capture ratio: %d.", devc->capture_ratio);
+ sr_dbg("Capture ratio: %" PRIu64 ".", devc->capture_ratio);
tmp = 0x77fff + 0x8000 * devc->capture_ratio / 100;
cmdstring[6] = tmp & 0xff;
cmdstring[7] = (tmp >> 8) & 0xff;