More typos in strings.
Submitted by: bde MFC after: 3 days
This commit is contained in:
parent
426b3d047a
commit
a96032e552
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309409
|
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user