On 5/7/18 10:32 AM, Jon Maloy wrote: > We make it easier for users to correlate between 128-bit node > identities and 32-bit node hash by extending the 'node list' > command to also show the hash value. > > We also improve the 'nametable show' command to show the node identity > instead of the node hash value. Since the former potentially is much > longer than the latter, we make room for it by eliminating the (to the > user) irrelevant publication key. We also reorder some of the columns > so that the node id comes last, since this looks nicer and more logical. > > Signed-off-by: Jon Maloy <jon.ma...@ericsson.com> > --- > tipc/misc.c | 18 ++++++++++++++++++ > tipc/misc.h | 1 + > tipc/nametable.c | 18 ++++++++++-------- > tipc/node.c | 19 ++++++++----------- > tipc/peer.c | 4 ++++ > 5 files changed, 41 insertions(+), 19 deletions(-) >
Hi Jon: I see new warnings with Debian stretch gcc: tipc CC misc.o CC nametable.o CC node.o CC peer.o misc.c: In function ‘hash2nodestr’: misc.c:128:14: warning: pointer targets in passing argument 1 of ‘nodeid2str’ differ in signedness [-Wpointer-sign] nodeid2str(nr.node_id, str); ^~ misc.c:100:6: note: expected ‘uint8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void nodeid2str(uint8_t *id, char *str) ^~~~~~~~~~