err = context->result;
if (err && context->fw_status != CMD_STAT_MULTI_FUNC_REQ) {
- mlx4_err(dev, "command 0x%x failed: fw status = 0x%x\n",
- vhcr_cmd, context->fw_status);
+ mlx4_err(dev, "%s: command 0x%x failed: fw status = 0x%x\n",
+ __func__, vhcr_cmd, context->fw_status);
if (mlx4_closing_cmd_fatal_error(op, context->fw_status))
goto out_reset;
}
__raw_readl(hcr + HCR_STATUS_OFFSET)) >> 24;
err = mlx4_status_to_errno(stat);
if (err) {
- mlx4_err(dev, "command 0x%x failed: fw status = 0x%x\n",
- op, stat);
+ mlx4_err(dev, "%s: command 0x%x failed: fw status = 0x%x\n",
+ __func__, op, stat);
if (mlx4_closing_cmd_fatal_error(op, stat))
goto out_reset;
goto out;
(in_modifier == 1 || in_modifier == 2) &&
op_modifier == MLX4_SET_PORT_IB_OPCODE &&
context->fw_status == CMD_STAT_BAD_SIZE)
- mlx4_dbg(dev, "command 0x%x failed: fw status = 0x%x\n",
- op, context->fw_status);
+ mlx4_dbg(dev, "%s(%d): command 0x%x failed: fw status = 0x%x\n",
+ __func__, __LINE__, op, context->fw_status);
else
- mlx4_err(dev, "command 0x%x failed: fw status = 0x%x\n",
- op, context->fw_status);
+ mlx4_err(dev, "%s(%d): command 0x%x failed: fw status = 0x%x\n",
+ __func__, __LINE__, op, context->fw_status);
if (dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR)
err = mlx4_internal_err_ret_value(dev, op, op_modifier);
else if (mlx4_closing_cmd_fatal_error(op, context->fw_status))