Project

General

Profile

Feature #4748

use an enum for tod_faulted global

Added by Josef Sipek over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
kernel
Start date:
2014-04-11
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

There is already an enum that defines all the possible fault states for TOD. The global tod_faulted should use this enum instead of just an int. This makes mdb's ::print output way easier to deal with:

before:

> tod_faulted::print
5

after:

> tod_faulted::print
5 (TOD_NOFAULT)

#1

Updated by Electric Monk over 6 years ago

git commit 4cde9a1e4370decb0ae4451cc85ce57730965c8c

commit  4cde9a1e4370decb0ae4451cc85ce57730965c8c
Author: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Date:   2014-04-23T16:28:27.000Z

    4748 use an enum for tod_faulted global
    Reviewed by: Richard Lowe <richlowe@richlowe.net>
    Approved by: Robert Mustacchi <rm@joyent.com>

#2

Updated by Electric Monk over 6 years ago

  • Status changed from New to Closed
  • % Done changed from 80 to 100

Also available in: Atom PDF