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
Unknown Object (File)
Thu, Sep 25, 5:57 AM
Unknown Object (File)
Sep 3 2025, 11:35 PM
Unknown Object (File)
Aug 24 2025, 12:06 AM
Unknown Object (File)
Aug 17 2025, 12:39 AM
Unknown Object (File)
Aug 14 2025, 9:17 AM
Unknown Object (File)
Aug 2 2025, 9:39 AM
Unknown Object (File)
Jul 12 2025, 11:04 AM
Unknown Object (File)
Jun 26 2025, 12:48 AM
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