Fix two more compiler warnings noticed on amd64.

This commit is contained in:
Uwe Hermann 2011-01-08 03:51:31 +01:00
parent 340f6e7aea
commit 5e2ddeb098
2 changed files with 4 additions and 3 deletions

View File

@ -43,8 +43,9 @@ void device_scan(void)
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);
}
}

View File

@ -443,7 +443,7 @@ static int *hw_get_capabilities(void)
/* 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))