libbladeRF: improve RFIC BIST loopback error message

Change from log_debug to log_error and provide clearer message when
RFIC BIST loopback is attempted in FPGA tuning mode. The new message
explicitly states the requirement (HOST mode) and current state (FPGA
mode), making it actionable for users.
This commit is contained in:
Ryan Thompson 2025-07-16 14:52:29 -05:00
commit 7d7d87f686

View file

@ -2471,8 +2471,9 @@ static int bladerf2_set_loopback(struct bladerf *dev, bladerf_loopback mode)
IF_COMMAND_MODE(dev, RFIC_COMMAND_FPGA, {
if (BLADERF_LB_RFIC_BIST == mode) {
log_debug(
"%s: BLADERF_LB_RFIC_BIST not supported in FPGA command mode\n",
log_error(
"%s: RFIC BIST requires HOST tuning mode (currently FPGA). "
"Check BLADERF_DEFAULT_TUNING_MODE env var.\n",
__FUNCTION__);
return BLADERF_ERR_UNSUPPORTED;
}