Date: Sun, 23 Jun 2019 11:01:10 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r349301 - stable/12/sys/amd64/amd64 Message-ID: <201906231101.x5NB1ACX095333@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sun Jun 23 11:01:09 2019 New Revision: 349301 URL: https://svnweb.freebsd.org/changeset/base/349301 Log: MFC r348813: Make trap_msg array constant as well. Modified: stable/12/sys/amd64/amd64/trap.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/amd64/amd64/trap.c ============================================================================== --- stable/12/sys/amd64/amd64/trap.c Sun Jun 23 10:59:53 2019 (r349300) +++ stable/12/sys/amd64/amd64/trap.c Sun Jun 23 11:01:09 2019 (r349301) @@ -119,7 +119,7 @@ static bool trap_user_dtrace(struct trapframe *, #endif static const char UNKNOWN[] = "unknown"; -static const char *trap_msg[] = { +static const char *const trap_msg[] = { [0] = UNKNOWN, /* unused */ [T_PRIVINFLT] = "privileged instruction fault", [2] = UNKNOWN, /* unused */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906231101.x5NB1ACX095333>