Ethereal-dev: [Ethereal-dev] Can I use %hu, %hhu ??

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Stefano Pettini <spettini@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 06 Jan 2005 13:47:00 +0100
Hello!

According to README.developer, I should avoid using %lld, %llu, %llx, %llo in printf-like functions.

Can I use %hu, %hx, %hhu, %hhx to print guint16 and guint8 ??

If I have a buffer obtained through tvb_get_string, with a length unknown at compile time, how can I display these bytes in a protocol tree in hex? I can't use proto_tree_add_bytes.

Thanks.

Stefano