Wireshark-dev: [Wireshark-dev] A very minor Q re checkAPIs '"name for hf... has trailing space
From: Bill Meier <wmeier@xxxxxxxxxxx>
Date: Wed, 30 Jan 2013 18:38:13 -0500
I've been doing a small update to checkAPIs.pl.

Among other things: I changed the code to remove comments from the source code string before calling check_hf_entries() since the check doesn't detect an hf... entry if it contains a comment.

I now get:

 Error: the name for hf_ppi_vector_rot_x ("ppi_vector.pitch") has
  trailing space in packet-ppi-vector.c

 Error: the name for hf_ppi_vector_rot_y ("ppi_vector.roll") has
  trailing space in packet-ppi-vector.c

 Error: the name for hf_ppi_vector_rot_z ("ppi_vector.heading") has
  trailing space in packet-ppi-vector.c

Looking at packet-ppi-vector.c, I see:

{ "Pitch ", "ppi_vector.pitch", /*extra spaces intentional. casuses field values to align*/
...

In fact, the field values do align when displayed.


So: What to do ?

My inclination would be just to remove the trailing spaces in the three names (labels) since it appears that it's felt that there should not be trailing spaces in field labels.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3548

Thoughts ?

Bill