Re: [PATCH 2/2] monitor: Format URI hash using 8 hex digits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Oh, I wasn't sure, let me update.

Regards,
Fred

On 26/07/2017 09:45, Marcel Holtmann wrote:
Hi Fred,

URI hash is a 32 bits value.
---
monitor/packet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/monitor/packet.c b/monitor/packet.c
index f72fcab6a..994f5b259 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -3551,7 +3551,7 @@ static void print_mesh_beacon(const uint8_t *data, uint8_t len)
			break;
		}

-		print_field("  URI Hash: 0x%4.4x", get_be32(data + 19));
+		print_field("  URI Hash: 0x%08x", get_be32(data + 19));

in btmon we use the 0x%8.8x notation then.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux