Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion libi2cdev/access.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#include "busses.h"
#include "data.h"
#include "error.h"
#include "sysfs.h"

#include "i2cdiscov.h"
Expand Down
1 change: 0 additions & 1 deletion libi2cdev/i2c-bus-parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <dirent.h>
#include <fcntl.h>
#include <errno.h>
#include <error.h>
#include <alloca.h>
#include <search.h>

Expand Down
1 change: 0 additions & 1 deletion libi2cdev/i2c-dev-path.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <string.h>
#include <errno.h>
#include <stdio.h>
#include <error.h>

#include <linux/limits.h>

Expand Down
1 change: 0 additions & 1 deletion libi2cdev/i2c-error.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include <stdlib.h>
#include <stdio.h>
#include <error.h>
#include <errno.h>
#include <stdbool.h>
#include <stdarg.h>
Expand Down
2 changes: 0 additions & 2 deletions libi2cdev/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@
#include <errno.h>
#include <dirent.h>
#include <unistd.h>
#include <error.h>
#include <limits.h>
#include <ctype.h>
#include <error.h>
#include <fcntl.h>
#include <assert.h>

Expand Down
1 change: 0 additions & 1 deletion libi2cdev/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <assert.h>
#include <string.h>
#include <fcntl.h>
#include <error.h>
#include <errno.h>

#include <sys/types.h>
Expand Down
4 changes: 2 additions & 2 deletions lsi2c/lsi2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <error.h>
#include <getopt.h>
#include <stdbool.h>

Expand Down Expand Up @@ -205,7 +204,8 @@ static int read_config_file(const char *config_file_name)
if (err < 0) {
err = -err;
}
error(0, err, "Failed to initialize i2cdevices");
fflush(stdout);
fprintf(stderr, "Failed to initialize i2cdevices: %s", strerror(err));
if (config_file) {
fclose(config_file);
}
Expand Down