projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6775a2
)
mlxsw: core: Use correct EMAD transaction ID in debug message
author
Ido Schimmel
<
[email protected]
>
Wed, 2 Aug 2017 07:52:10 +0000
(09:52 +0200)
committer
David S. Miller
<
[email protected]
>
Wed, 2 Aug 2017 23:58:49 +0000
(16:58 -0700)
'trans->tid' is only assigned later in the function, resulting in a zero
transaction ID. Use 'tid' instead.
Signed-off-by: Ido Schimmel <
[email protected]
>
Signed-off-by: Jiri Pirko <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/mellanox/mlxsw/core.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlxsw/core.c
b/drivers/net/ethernet/mellanox/mlxsw/core.c
index affe84eb4bff5717e5ddba4835395a8a8989f8ca..9d5e7cf288bef2b1eb603843c7b57945918aeb72 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlxsw/core.c
+++ b/
drivers/net/ethernet/mellanox/mlxsw/core.c
@@
-667,7
+667,7
@@
static int mlxsw_emad_reg_access(struct mlxsw_core *mlxsw_core,
int err;
dev_dbg(mlxsw_core->bus_info->dev, "EMAD reg access (tid=%llx,reg_id=%x(%s),type=%s)\n",
- t
rans->t
id, reg->id, mlxsw_reg_id_str(reg->id),
+ tid, reg->id, mlxsw_reg_id_str(reg->id),
mlxsw_core_reg_access_type_str(type));
skb = mlxsw_emad_alloc(mlxsw_core, reg->len);