Skip to content

Commit

Permalink
Changed two debug output messages into one.
Browse files Browse the repository at this point in the history
  • Loading branch information
modmaker committed Jun 13, 2013
1 parent deb8ff9 commit 829ec79
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ static int pwm_write_int_to_file( const char* path, const char* fname, int value
snprintf( s, sizeof( s), "%s/%s", path, fname);
int fd = open( s, O_WRONLY);
if (fd < 0) {
perror( "pwm_write_int_to_file: open failed");
fprintf( stderr, "pwm_write_int_to_file: open failed for file '%s'\n", fname);
fprintf( stderr, "pwm_write_int_to_file: open for file '%s' failed: %s\n", s, strerror( errno));
return -1;
}
char s2[ 32];
Expand Down

0 comments on commit 829ec79

Please sign in to comment.