Project

General

Profile

Actions

Feature #4748

closed

use an enum for tod_faulted global

Added by Josef Sipek over 9 years ago. Updated over 9 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:
External Bug:

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)

Actions #1

Updated by Electric Monk over 9 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>

Actions #2

Updated by Electric Monk over 9 years ago

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

Also available in: Atom PDF