Skip to content

Commit

Permalink
More typos in strings.
Browse files Browse the repository at this point in the history
Submitted by:	bde
MFC after:	3 days
  • Loading branch information
n_hibma authored and n_hibma committed Dec 2, 2016
1 parent 0a67be8 commit 48de746
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions usr.sbin/i2c/i2c.c
Expand Up @@ -413,7 +413,7 @@ i2c_write(char *dev, struct options i2c_opt, char *i2c_buf)
cmd.slave = i2c_opt.addr;
error = ioctl(fd, I2CSTOP, &cmd);
if (error == -1)
fprintf(stderr, "error sending stop condtion\n");
fprintf(stderr, "error sending stop condition\n");
err2:
if (err_msg)
fprintf(stderr, "%s\n", err_msg);
Expand Down Expand Up @@ -466,7 +466,7 @@ i2c_read(char *dev, struct options i2c_opt, char *i2c_buf)
cmd.slave = i2c_opt.addr;
error = ioctl(fd, I2CSTOP, &cmd);
if (error == -1) {
err_msg = "error sending stop condtion";
err_msg = "error sending stop condition";
goto err2;
}
}
Expand All @@ -491,7 +491,7 @@ i2c_read(char *dev, struct options i2c_opt, char *i2c_buf)
}
error = ioctl(fd, I2CSTOP, &cmd);
if (error == -1) {
err_msg = "error sending stop condtion";
err_msg = "error sending stop condition";
goto err2;
}

Expand All @@ -510,7 +510,7 @@ i2c_read(char *dev, struct options i2c_opt, char *i2c_buf)
cmd.slave = i2c_opt.addr;
error = ioctl(fd, I2CSTOP, &cmd);
if (error == -1)
fprintf(stderr, "error sending stop condtion\n");
fprintf(stderr, "error sending stop condition\n");
err2:
if (err_msg)
fprintf(stderr, "%s\n", err_msg);
Expand Down

0 comments on commit 48de746

Please sign in to comment.