On 06/10/2015 01:30 PM, Jan Stancek wrote: > > > > > ----- Original Message ----- >> From: "Cyril Hrubis" <chru...@suse.cz> >> To: "Stanislav Kholmanskikh" <stanislav.kholmansk...@oracle.com> >> Cc: ltp-list@lists.sourceforge.net, "vasily isaenko" >> <vasily.isae...@oracle.com>, jstan...@redhat.com >> Sent: Wednesday, 10 June, 2015 12:24:14 PM >> Subject: Re: [PATCH] detach_device: Wait until the kernel frees the loop >> device >> >> Hi! >>> Do you mean printing of TINFO/TWARN messages right in the cycle? >>> >>> if (errno != EBUSY) { >>> err = errno; >>> tst_resm(TWARN, >>> "ioctl(%s, LOOP_CLR_FD, 0) unexpectedly failed >>> with: %s", >>> dev, tst_strerrno(err)); >>> } >>> >>> >>> But in the worst case, we may end up with 40 messages generated. >>> >>> Or do you mean saving the last errno and printing it to the final tst_brkm? >> >> Either one works for me. > > I too prefer the 40 option, just in case it would be some transient error, > where you still get ENXIO in the end and no message.
Ok. Sent V2. > > Regards, > Jan > >> >> Having 40 messages is better than none. Because you will see these only >> if something went wrong. >> >> -- >> Cyril Hrubis >> chru...@suse.cz >> ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list