Lines Matching refs:fprintf
47 fprintf(stderr, "Failed to open %s\n", chrdev_name); in monitor_device()
65 fprintf(stderr, in monitor_device()
72 fprintf(stdout, "Monitoring line %d on %s\n", lines[0], device_name); in monitor_device()
73 fprintf(stdout, "Initial line value: %d\n", in monitor_device()
76 fprintf(stdout, "Monitoring lines %d", lines[0]); in monitor_device()
78 fprintf(stdout, ", %d", lines[i]); in monitor_device()
79 fprintf(stdout, " and %d on %s\n", lines[i], device_name); in monitor_device()
80 fprintf(stdout, "Initial line values: %d", in monitor_device()
83 fprintf(stdout, ", %d", in monitor_device()
85 fprintf(stdout, " and %d\n", in monitor_device()
96 fprintf(stderr, "nothing available\n"); in monitor_device()
100 fprintf(stderr, "Failed to read event (%d)\n", in monitor_device()
107 fprintf(stderr, "Reading event failed\n"); in monitor_device()
111 fprintf(stdout, "GPIO EVENT at %" PRIu64 " on line %d (%d|%d) ", in monitor_device()
116 fprintf(stdout, "rising edge"); in monitor_device()
119 fprintf(stdout, "falling edge"); in monitor_device()
122 fprintf(stdout, "unknown event"); in monitor_device()
124 fprintf(stdout, "\n"); in monitor_device()
144 fprintf(stderr, "Usage: gpio-event-mon [options]...\n" in print_usage()