Skip to content

Commit

Permalink
fix standard output
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalten committed May 18, 2016
1 parent bd078a2 commit 9702083
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions linux/DC1394Camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ void DC1394Camera::listDevices() {

if (dc1394_camera_enumerate (d, &list) != DC1394_SUCCESS) {
//fprintf (stderr, "failed to enumerate cameras\n");
fprintf (stderr, "no DC1394 cameras found\n");
printf("no DC1394 cameras found\n");
dc1394_free(d);
return;
}

if (list->num == 0) {
fprintf (stderr, "no DC1394 cameras found\n");
printf("no DC1394 cameras found\n");
dc1394_free(d);
return;
} else if (list->num == 1) printf("1 DC1394 camera found:\n");
Expand Down Expand Up @@ -119,13 +119,13 @@ bool DC1394Camera::findCamera() {

if (dc1394_camera_enumerate (d, &list) != DC1394_SUCCESS) {
//fprintf (stderr, "failed to enumerate cameras\n");
fprintf (stderr, "no DC1394 cameras found\n");
printf("no DC1394 cameras found\n");
dc1394_free(d);
return false;
}

if (list->num == 0) {
fprintf (stderr, "no DC1394 cameras found\n");
printf("no DC1394 cameras found\n");
dc1394_free(d);
return false;
} else if (list->num == 1) printf("1 DC1394 camera found\n");
Expand Down

0 comments on commit 9702083

Please sign in to comment.