dey-examples: tamper: use string intead of magic number for acking the event

This will only work if the kernel has the latest driver for MCA tamper.
Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
This commit is contained in:
Sebastian Pastor 2017-06-07 21:15:17 +02:00
parent a8f0024403
commit f5cdab182c
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ static void tamper_event_ack(mca_tamper_t *tdata)
} }
/* Finally, acknowledge the event */ /* Finally, acknowledge the event */
ret = write_sysfs_int("tamper_events", tamper_sysfs_dir, 2); ret = write_sysfs_string("tamper_events", tamper_sysfs_dir, "ack");
if (ret < 0) { if (ret < 0) {
fprintf(stdout, "Failed to acknowledge tamper%d event\n", fprintf(stdout, "Failed to acknowledge tamper%d event\n",
tdata->iface); tdata->iface);