habanalabs: make print of engines idle mask more readable
authorTomer Tayar <ttayar@habana.ai>
Thu, 17 Nov 2022 16:57:49 +0000 (18:57 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 23 Nov 2022 14:49:10 +0000 (16:49 +0200)
commit1b18cf33d6ce63a9f5fe3764d7b20c4738dd1245
tree29a89c7d95166805a21c3a54676391ef0eaa949c
parent893afb248c7a1f24d17719a5e5f4fe4174ecb60c
habanalabs: make print of engines idle mask more readable

The engines idle mask was increased to be an array of 4 u64 entries.
To make the print of this mask more readable, remove the "0x" prefix,
and zero-pad each u64 to 16 bytes if either it isn't zero or if any of
the higher-order u64's is not zero.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/device.c