Page MenuHomeFreeBSD

libdtrace: Fix dt_print_sym() not printing symbols in non-oformat mode
ClosedPublic

Authored by lwhsu on Fri, Jun 26, 9:32 PM.
Tags
None
Referenced Files
F161355505: D57895.diff
Fri, Jul 3, 2:53 AM
F161348462: D57895.diff
Fri, Jul 3, 1:26 AM
Unknown Object (File)
Wed, Jul 1, 11:43 PM
Unknown Object (File)
Wed, Jul 1, 11:43 PM
Unknown Object (File)
Wed, Jul 1, 11:43 PM
Unknown Object (File)
Wed, Jul 1, 11:43 PM
Unknown Object (File)
Wed, Jul 1, 11:42 PM
Unknown Object (File)
Wed, Jul 1, 11:42 PM
Subscribers

Details

Summary
libdtrace: Fix dt_print_sym() not printing symbols in non-oformat mode

dt_print_sym() fills the symbol string via snprintf() in non-oformat
mode but the guarding `dtp->dt_oformat != 0 &&` for the dt_printf()
causes the symbol is computed but never emitted.

Fixes:		93f27766a7e1 ("dtrace: Add the 'oformat' libdtrace option")
Event:		Halifax Hackathon 202606
Location:	Room 208, Computer Science Building, Dalhousie University
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable