File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -22,5 +22,6 @@ void ptp_panic(char *fmt, ...) {
22
22
vprintf (fmt , args );
23
23
va_end (args );
24
24
fflush (stdout );
25
+ putchar ('\n' );
25
26
abort ();
26
27
}
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ int test_eos_t6() {
74
74
75
75
rc = ptp_get_device_info (& r , & di );
76
76
if (rc ) return rc ;
77
- char buffer [2048 ];
77
+ char buffer [4096 ];
78
78
ptp_device_info_json (& di , buffer , sizeof (buffer ));
79
79
printf ("%s\n" , buffer );
80
80
@@ -155,7 +155,7 @@ int test_fs() {
155
155
struct PtpDeviceInfo di ;
156
156
rc = ptp_get_device_info (& r , & di );
157
157
if (rc ) return rc ;
158
- char buffer [2048 ];
158
+ char buffer [4096 ];
159
159
ptp_device_info_json (& di , buffer , sizeof (buffer ));
160
160
printf ("%s\n" , buffer );
161
161
@@ -208,11 +208,11 @@ int test_fs() {
208
208
static void * thread (void * arg ) {
209
209
struct PtpRuntime * r = (struct PtpRuntime * )arg ;
210
210
211
- if (rand () & 1 == 0 ) {
211
+ if (( rand () & 1 ) == 0 ) {
212
212
struct PtpDeviceInfo di ;
213
213
int rc = ptp_get_device_info (r , & di );
214
214
if (rc ) goto err ;
215
- char buffer [2048 ];
215
+ char buffer [4096 ];
216
216
ptp_device_info_json (& di , buffer , sizeof (buffer ));
217
217
printf ("%s\n" , buffer );
218
218
} else {
You can’t perform that action at this time.
0 commit comments