This is done in many other places as well, patch
to fix gratefully accepted!
if (retval != ERROR_OK)
{
- LOG_ERROR("auto_probe failed\n");
+ LOG_ERROR("auto_probe failed");
return retval;
}
}
if (retval != ERROR_OK)
{
- LOG_ERROR("auto_probe failed\n");
+ LOG_ERROR("auto_probe failed");
return retval;
}
*bank = p;
if (retval != ERROR_OK)
{
- LOG_ERROR("auto_probe failed\n");
+ LOG_ERROR("auto_probe failed");
return retval;
}
/* check whether address belongs to this flash bank */
*result_bank = NULL;
if (check)
{
- LOG_ERROR("No flash at address 0x%08" PRIx32 "\n", addr);
+ LOG_ERROR("No flash at address 0x%08" PRIx32, addr);
return ERROR_FAIL;
}
return ERROR_OK;