Skip to content

Commit

Permalink
Prettier verbose file listing.
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbrinkhoff committed Jul 28, 2019
1 parent 88f53a8 commit 7dcf52d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions itstar.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,15 +366,18 @@ static void listfiles(int argc,char **argv)
/* list a single file (called back by scantape()) */
static void listfile()
{
printf("%s;%s %s",ufd,fn1,fn2); /* print ITS filename */
static const char spaces[] = " ";
int n;
n=printf("%s;%s %s",ufd,fn1,fn2); /* print ITS filename */
if (verify) {
if(islink) {
insix(lfn1);
insix(lfn2);
insix(lufd);
printf (" %s;%s %s", lufd, lfn1, lfn2);
} else if (cdate.tm_year!=0) {
printf (" %d-%d-%d", cdate.tm_year + 1900, cdate.tm_mon,
fputs (spaces + n, stdout);
printf (" %4d-%02d-%02d", cdate.tm_year + 1900, cdate.tm_mon,
cdate.tm_mday);
}
}
Expand Down

0 comments on commit 7dcf52d

Please sign in to comment.