Bugs item #1208892, was opened at 2005-05-26 07:02
Message generated for change (Comment added) made by vadimr
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=532251&aid=1208892&group_id=71730
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: OpenHPI base library
Group: 2.1.2
>Status: Pending
>Resolution: Accepted
Priority: 9
Submitted By: wang, jing (wangjing)
Assigned to: vadim revyakin (vadimr)
Summary: The alarm.acknowledged=0xff after saHpiAlarmAdd
Initial Comment:
This is a big issue. Please give a high priority
Reproduce steps:
1. Add the alarm to DAT using saHpiAlarmAdd
2. Get the alarm using saHpiAlarmGet
3. Check the Alarm.Acknowledged value
Expected value:
0
Actual value:
255
...
NewAlarm.Severity = SAHPI_MINOR;
NewAlarm.AlarmCond.Type =
SAHPI_STATUS_COND_TYPE_USER;
NewAlarm.AlarmCond.ResourceId =
SAHPI_UNSPECIFIED_RESOURCE_ID;
NewAlarm.AlarmCond.Data.Language =
SAHPI_LANG_ENGLISH;
NewAlarm.AlarmCond.Data.DataType =
SAHPI_TL_TYPE_TEXT;
NewAlarm.AlarmCond.Data.DataLength = 1;
NewAlarm.AlarmCond.Data.Data[0] = 'a';
NewAlarm.AlarmCond.DomainId =
SAHPI_UNSPECIFIED_DOMAIN_ID;
NewAlarm.AlarmCond.Name.Length = 4;
NewAlarm.AlarmCond.Name.Value[0] = 'T';
NewAlarm.AlarmCond.Name.Value[1] = 'e';
NewAlarm.AlarmCond.Name.Value[2] = 's';
NewAlarm.AlarmCond.Name.Value[3] = 't';
status = saHpiAlarmAdd(session_id,&NewAlarm);
FirstAlarm = NewAlarm.AlarmId;
saHpiAlarmGet(session_id,FirstAlarm,&NewAlarm);
printf("FirstAlarm.Acknowledged=%
d\n",NewAlarm.Acknowledged);
----------------------------------------------------------------------
>Comment By: vadim revyakin (vadimr)
Date: 2005-06-01 12:04
Message:
Logged In: YES
user_id=1133239
fixed
----------------------------------------------------------------------
Comment By: vadim revyakin (vadimr)
Date: 2005-05-26 11:15
Message:
Logged In: YES
user_id=1133239
The test is not quite correct. It doesn't initialize
NewAlarm.Acknowledged field before saHpiAlarmAdd(). spec
says that only fields AlarmId and Timestamp fields will not be
used in the new alarm initialization.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=532251&aid=1208892&group_id=71730
|