Project

General

Profile

Feature #12493

topo_sensor_type_name() should recognize OEM sensors

Added by Rob Johnston 7 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

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

Description

The IPMI specification reserves the range of sensor type numbers from 0xC0 to 0xFF for OEM-defined sensor types. Currently when such a sensor is passed to topo_sensor_type_name(), it fails to look up a type name and so simply sets the type name to the hex value of the type number (which is the default behavior when the lookup fails).

This ticket is to have it set the type name to "OEM" if the sensor number is within the OEM-reserved range. This is simply a cosmetic change to make the output of things like fmtopo more readable when dumping sensor facility nodes.

Also available in: Atom PDF