X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fbaylibre-acme%2Fprotocol.c;h=a50c221993bd31852a57bd5ddac404c14fcea41e;hb=7237e91262251a138cf150f9fcfe7b05d0e5904b;hp=8e730f15d0f26e5933512f86fa7da4cdddc3d4e6;hpb=34577da641d836dcf27433fee3c6384565ca7847;p=libsigrok.git diff --git a/src/hardware/baylibre-acme/protocol.c b/src/hardware/baylibre-acme/protocol.c index 8e730f15..a50c2219 100644 --- a/src/hardware/baylibre-acme/protocol.c +++ b/src/hardware/baylibre-acme/protocol.c @@ -380,7 +380,7 @@ SR_PRIV int bl_acme_set_shunt(const struct sr_channel_group *cg, uint64_t shunt) */ fd = g_fopen(path->str, "w"); if (!fd) { - sr_err("Error opening %s: %s", path->str, strerror(errno)); + sr_err("Error opening %s: %s", path->str, g_strerror(errno)); ret = SR_ERR_IO; goto out; } @@ -508,7 +508,7 @@ static float read_sample(struct sr_channel *ch) len = read(fd, buf, sizeof(buf)); if (len < 0) { sr_err("Error reading from channel %s (hwmon: %s): %s", - ch->name, chp->probe->hwmon_num, strerror(errno)); + ch->name, chp->probe->hwmon_num, g_strerror(errno)); ch->enabled = FALSE; return -1.0; } @@ -540,7 +540,7 @@ SR_PRIV int bl_acme_open_channel(struct sr_channel *ch) fd = open(path, O_RDONLY); if (fd < 0) { - sr_err("Error opening %s: %s", path, strerror(errno)); + sr_err("Error opening %s: %s", path, g_strerror(errno)); ch->enabled = FALSE; return SR_ERR; }