Skip to content

Commit 36055a0

Browse files
Dennis Dalessandrodledford
authored andcommitted
IB/rdmavt: Do not use rvt prints which rely on driver too early
Trying to print debug and error messages with the rdmavt helpers will not work out so well if the drivers have not provided the get_card and get pci functions. Use the normal pr_error instead until we can check this. Reviewed-by: Ira Weiny <[email protected]> Reviewed-by: Mike Marciniszyn <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent 7b1e209 commit 36055a0

File tree

1 file changed

+1
-1
lines changed
  • drivers/infiniband/sw/rdmavt

1 file changed

+1
-1
lines changed

drivers/infiniband/sw/rdmavt/vt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ int rvt_register_device(struct rvt_dev_info *rdi)
266266
/* Mem Region */
267267
ret = rvt_driver_mr_init(rdi);
268268
if (ret) {
269-
rvt_pr_err(rdi, "Error in driver MR init.\n");
269+
pr_err("Error in driver MR init.\n");
270270
goto bail_no_mr;
271271
}
272272

0 commit comments

Comments
 (0)