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
F83206247: D12449.diff
Tue, May 7, 5:02 PM
Unknown Object (File)
Feb 4 2024, 3:15 AM
Unknown Object (File)
Feb 4 2024, 3:14 AM
Unknown Object (File)
Dec 20 2023, 2:10 AM
Unknown Object (File)
Sep 7 2023, 8:28 AM
Unknown Object (File)
Sep 7 2023, 8:25 AM
Unknown Object (File)
Sep 7 2023, 8:25 AM
Unknown Object (File)
Sep 1 2023, 8:34 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 Passed
Unit
No Test Coverage
Build Status
Buildable 11670
Build 12016: arc lint + arc unit