X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=disp_basic.c;h=d1c50150abe1d8380d5d01c795ca11b6bd766809;hb=73de79ef42d69526bb1f5f4e976c746d96ad99a0;hp=39f4e36b6ecb54cf2a059eb7e2183340eb8288e8;hpb=4e2aac5e36dc411f42540c3c77a3440ce56062f4;p=sersniff.git diff --git a/disp_basic.c b/disp_basic.c index 39f4e36..d1c5015 100644 --- a/disp_basic.c +++ b/disp_basic.c @@ -52,7 +52,7 @@ void disp_outputstatus(char *string) /* Output a string from the port. */ void disp_outputstr(int port, char *string, - long usec_threshold, long usec_waited) + long usec_threshold, long usec_waited, char *name1, char *name2) { if (usec_waited>usec_threshold) { /* report how long we waited between the last port */ @@ -66,7 +66,11 @@ void disp_outputstr(int port, char *string, if (last!=port) { /* If we didn't just send a CR, we need to now */ if (wrap!=WRAPINIT) printf("\n"); - printf("\nPort%d:\t", port); + //printf("\nPort%d:\t", port); + if (port == 1) + printf("\n%s:\t",name1); + else + printf("\n%s:\t",name2); last=port; wrap=WRAPINIT; } else if (wrap==WRAPINIT) {