net/mlx5: fw_tracer: Fix debug print
authorShay Drory <shayd@nvidia.com>
Wed, 11 Jan 2023 11:34:02 +0000 (13:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:52 +0000 (09:33 +0100)
[ Upstream commit 988c2352273997a242f15c4fc3711773515006a2 ]

The debug message specify tdsn, but takes as an argument the
tmsn. The correct argument is tmsn, hence, fix the print.

Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c

index 5b05b88..d7b2ee5 100644 (file)
@@ -603,7 +603,7 @@ static int mlx5_tracer_handle_string_trace(struct mlx5_fw_tracer *tracer,
        } else {
                cur_string = mlx5_tracer_message_get(tracer, tracer_event);
                if (!cur_string) {
-                       pr_debug("%s Got string event for unknown string tdsm: %d\n",
+                       pr_debug("%s Got string event for unknown string tmsn: %d\n",
                                 __func__, tracer_event->string_event.tmsn);
                        return -1;
                }