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.

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