Skip to content

Commit

Permalink
Added more debug because some of these are normal
Browse files Browse the repository at this point in the history
  • Loading branch information
juddmon committed Apr 8, 2014
1 parent 3002fd6 commit d7ab472
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dialer/jpilot-dial.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ int main(int argc, char **argv)
}
#endif
if (write(fd, buf, bufidx) < 0) {
fprintf(stderr, "write failed\n");
fprintf(stderr, "write failed %s %d\n", __FILE__, __LINE__);
}
}

Expand Down Expand Up @@ -446,7 +446,7 @@ silent(int msec) {
}
if (bufidx >= bufsize) {
if (write(fd, buf, bufsize) < 0) {
fprintf(stderr, "write failed\n");
fprintf(stderr, "write failed %s %d\n", __FILE__, __LINE__);
}
bufidx = 0;
}
Expand Down Expand Up @@ -526,7 +526,7 @@ dial(int f1, int f2, int msec) {

if (bufidx >= bufsize) {
if (write(fd, buf, bufsize) < 0) {
fprintf(stderr, "write failed\n");
fprintf(stderr, "write failed %s %d\n", __FILE__, __LINE__);
}
bufidx = 0;
}
Expand Down
2 changes: 1 addition & 1 deletion pidfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pid_t check_for_jpilot(void)
if ((pidfp = fopen(pidfile, "r")) != NULL) {
if (fscanf(pidfp, "%d", &pid) == EOF) {
if (ferror(pidfp)) {
jp_logf(JP_LOG_WARN, "fscanf failed\n");
jp_logf(JP_LOG_WARN, "fscanf failed %s %d\n", __FILE__, __LINE__);
}
}

Expand Down

0 comments on commit d7ab472

Please sign in to comment.