]> git.baikalelectronics.ru Git - kernel.git/commitdiff
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>
Sat, 11 Mar 2023 15:43:56 +0000 (16:43 +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 db9ecc3a8c67a5c0b4146d520753026bf9039259..fcf5fef7c195da3e7dae279b6fb9587690284a4e 100644 (file)
@@ -600,7 +600,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;
                }