1/* Copyright (C) 2010 - 2013 UNISYS CORPORATION 2 * All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or (at 7 * your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, but 10 * WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or 12 * NON INFRINGEMENT. See the GNU General Public License for more 13 * details. 14 */ 15 16#ifndef _DIAG_CHANNEL_H_ 17#define _DIAG_CHANNEL_H_ 18 19/* Levels of severity for diagnostic events, in order from lowest severity to 20 * highest (i.e. fatal errors are the most severe, and should always be logged, 21 * but info events rarely need to be logged except during debugging). The 22 * values DIAG_SEVERITY_ENUM_BEGIN and DIAG_SEVERITY_ENUM_END are not valid 23 * severity values. They exist merely to dilineate the list, so that future 24 * additions won't require changes to the driver (i.e. when checking for 25 * out-of-range severities in SetSeverity). The values DIAG_SEVERITY_OVERRIDE 26 * and DIAG_SEVERITY_SHUTOFF are not valid severity values for logging events 27 * but they are valid for controlling the amount of event data. Changes made 28 * to the enum, need to be reflected in s-Par. 29 */ 30enum diag_severity { 31 DIAG_SEVERITY_VERBOSE = 0, 32 DIAG_SEVERITY_INFO = 1, 33 DIAG_SEVERITY_WARNING = 2, 34 DIAG_SEVERITY_ERR = 3, 35 DIAG_SEVERITY_PRINT = 4, 36}; 37 38#endif 39