This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tapsets/16616] the 'servername' convenience variable returned by the rpc tapset can be NULL


https://sourceware.org/bugzilla/show_bug.cgi?id=16616

Josh Stone <jistone at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jistone at redhat dot com

--- Comment #1 from Josh Stone <jistone at redhat dot com> ---
(In reply to David Smith from comment #0)
> (And what is up with all the extra space in that '0x          (null)' string?)

We use the kernel snprintf with "0x%p", which has this comment:

  /*
   * Print (null) with the same width as a pointer so it makes
   * tabular output look nice.
   */

The default width is 2*sizeof(void*), and since we wrote "0x" ourselves, that
will show up no matter what.

If we want to be cleaner and/or more compact, we could try "%#1p" instead.

-- 
You are receiving this mail because:
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]