@@ -265,7 +265,7 @@ static struct tb_cfg_result parse_header(const struct ctl_pkg *pkg, u32 len,
265
265
return res ;
266
266
}
267
267
268
- static void tb_cfg_print_error (struct tb_ctl * ctl ,
268
+ static void tb_cfg_print_error (struct tb_ctl * ctl , enum tb_cfg_space space ,
269
269
const struct tb_cfg_result * res )
270
270
{
271
271
WARN_ON (res -> err != 1 );
@@ -279,8 +279,8 @@ static void tb_cfg_print_error(struct tb_ctl *ctl,
279
279
* Invalid cfg_space/offset/length combination in
280
280
* cfg_read/cfg_write.
281
281
*/
282
- tb_ctl_dbg (ctl , "%llx:%x: invalid config space or offset\n" ,
283
- res -> response_route , res -> response_port );
282
+ tb_ctl_dbg (ctl , "%llx:%x: invalid config space (%u) or offset\n" ,
283
+ res -> response_route , res -> response_port , space );
284
284
return ;
285
285
case TB_CFG_ERROR_NO_SUCH_PORT :
286
286
/*
@@ -1072,7 +1072,7 @@ static int tb_cfg_get_error(struct tb_ctl *ctl, enum tb_cfg_space space,
1072
1072
res -> tb_error == TB_CFG_ERROR_INVALID_CONFIG_SPACE )
1073
1073
return - ENODEV ;
1074
1074
1075
- tb_cfg_print_error (ctl , res );
1075
+ tb_cfg_print_error (ctl , space , res );
1076
1076
1077
1077
if (res -> tb_error == TB_CFG_ERROR_LOCK )
1078
1078
return - EACCES ;
0 commit comments