0, packet, 1, TIMEOUT);
if (ret != 1)
sr_err("%s: libusb_control_transfer returned %d\n",
- __FUNCTION__, ret);
+ __func__, ret);
return ret;
}
0, packet, 1, TIMEOUT);
if (ret != 1)
sr_err("%s: libusb_control_transfer returned %d\n",
- __FUNCTION__, ret);
+ __func__, ret);
return ret;
}
0, packet, 1, TIMEOUT);
if (ret != 1)
sr_err("%s: libusb_control_transfer returned %d, val=%hhx\n",
- __FUNCTION__, ret, packet[0]);
+ __func__, ret, packet[0]);
return (ret == 1) ? packet[0] : ret;
}
0, packet, 8, TIMEOUT);
if (ret != 8)
sr_err("%s: libusb_control_transfer returned %d\n",
- __FUNCTION__, ret);
+ __func__, ret);
ret = libusb_bulk_transfer(devh, ENDPOINT_BULK_IN, buffer, size,
&transferred, TIMEOUT);
/* TODO: This will set the same samplerate for all devices. */
static int set_configuration_samplerate(uint64_t samplerate)
{
- sr_info("%s(%" PRIu64 ")", __FUNCTION__, samplerate);
+ sr_info("%s(%" PRIu64 ")", __func__, samplerate);
if (samplerate > SR_MHZ(1))
analyzer_set_freq(samplerate / SR_MHZ(1), FREQ_SCALE_MHZ);
else if (samplerate > SR_KHZ(1))