From f5cdab182c23f6b9aa754635efab781baa50cec9 Mon Sep 17 00:00:00 2001 From: Sebastian Pastor Date: Wed, 7 Jun 2017 21:15:17 +0200 Subject: [PATCH] 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 --- .../dey-examples/files/tamper_sample/tamper_sample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-digi-dey/recipes-digi/dey-examples/files/tamper_sample/tamper_sample.c b/meta-digi-dey/recipes-digi/dey-examples/files/tamper_sample/tamper_sample.c index d3e2dc17d..d63f9df7e 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/files/tamper_sample/tamper_sample.c +++ b/meta-digi-dey/recipes-digi/dey-examples/files/tamper_sample/tamper_sample.c @@ -97,7 +97,7 @@ static void tamper_event_ack(mca_tamper_t *tdata) } /* 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) { fprintf(stdout, "Failed to acknowledge tamper%d event\n", tdata->iface);