Page MenuHomeFreeBSD

Make struct grouptask gt_name member a char array
ClosedPublic

Authored by shurd on Sep 22 2017, 12:34 AM.
Tags
None
Referenced Files
F170730342: D12449.id33350.diff
Sun, Sep 6, 6:39 AM
F170648914: D12449.id.diff
Sat, Sep 5, 7:39 PM
F170575428: D12449.diff
Sat, Sep 5, 11:43 AM
Unknown Object (File)
Wed, Sep 2, 9:52 PM
Unknown Object (File)
Wed, Sep 2, 2:25 PM
Unknown Object (File)
Tue, Sep 1, 4:22 AM
Unknown Object (File)
Tue, Sep 1, 4:22 AM
Unknown Object (File)
Mon, Aug 31, 8:44 PM
Subscribers

Details

Summary

Previously, it was just a pointer which was copied, but
some callers pass in a stack variable which will go out of scope.
Add GROUPTASK_NAMELEN macro (32) and snprintf() the name into it,
using "grouptask" if name is NULL. We can now safely include
gtask->gt_name in console messages.

Test Plan

Trigger errors and ensure name is printed correctly

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable