g_message("initializing %s plugin", plugin->name);
num_devices = plugin->init(NULL);
for (i = 0; i < num_devices; i++) {
- num_probes = (int)plugin->get_device_info(i,
- DI_NUM_PROBES);
+ num_probes
+ = (int)(unsigned long)plugin->get_device_info(i,
+ DI_NUM_PROBES);
device_new(plugin, i, num_probes);
}
}
/* TODO: This will set the same samplerate for all devices. */
static int set_configuration_samplerate(uint64_t samplerate)
{
- g_message("%s(%llu)", __FUNCTION__, samplerate);
+ g_message("%s(%" PRIu64 ")", __FUNCTION__, samplerate);
if (samplerate > MHZ(1))
analyzer_set_freq(samplerate / MHZ(1), FREQ_SCALE_MHZ);
else if (samplerate > KHZ(1))