svn commit: r323944 - in head/sys: kern sys

Gleb Smirnoff glebius at FreeBSD.org
Mon Sep 25 21:25:45 UTC 2017


  Stephen,

On Sat, Sep 23, 2017 at 01:39:16AM +0000, Stephen Hurd wrote:
S> Author: shurd
S> Date: Sat Sep 23 01:39:16 2017
S> New Revision: 323944
S> URL: https://svnweb.freebsd.org/changeset/base/323944
S> 
S> Log:
S>   Make struct grouptask gt_name member a char array
S>   
S>   Previously, it was just a pointer which was copied, but
S>   some callers pass in a stack variable which will go out of scope.
S>   Add GROUPTASK_NAMELEN macro (32) and snprintf() the name into it,
S>   using "grouptask" if name is NULL. We can now safely include
S>   gtask->gt_name in console messages.

Have you estimated which structures include struct grouptask, so
that they now got larger?

Is this done only for the sake of console messages?

-- 
Gleb Smirnoff


More information about the svn-src-all mailing list