File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -176,8 +176,10 @@ static void *do_rproc_start(void *unused)
176176 ssize_t ret ;
177177
178178 ret = pwrite (rproc_state_fd , "start" , 5 , 0 );
179- if (ret < 4 )
180- fprintf (stderr , "failed to update start state\n" );
179+ if (ret < 4 ) {
180+ fprintf (stderr , "failed to update start state: %s\n" ,
181+ strerror (errno ));
182+ }
181183
182184 return NULL ;
183185}
@@ -192,8 +194,10 @@ static void *do_rproc_stop(void *unused)
192194 ssize_t ret ;
193195
194196 ret = pwrite (rproc_state_fd , "stop" , 4 , 0 );
195- if (ret < 4 )
196- fprintf (stderr , "failed to update stop state\n" );
197+ if (ret < 4 ) {
198+ fprintf (stderr , "failed to update stop state: %s\n" ,
199+ strerror (errno ));
200+ }
197201
198202 ret = write (rproc_pipe [1 ], "Y" , 1 );
199203 if (ret != 1 ) {
You can’t perform that action at this time.
0 commit comments