From 34eb39da57c7ebb6c32591960e1cb111cc8de7cb Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Wed, 7 May 2025 18:34:15 -0700 Subject: Better prints --- mycan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mycan.c') diff --git a/mycan.c b/mycan.c index 7320b87..e534340 100644 --- a/mycan.c +++ b/mycan.c @@ -106,12 +106,12 @@ int main(int argc, char **argv) remain=offset%ENTRY_SIZE; if(remain) { - printf(".csv file not a multiple of %d, remove last line\n",ENTRY_SIZE); + printf("Corrupted .csv file not a multiple of %d, removing last line\n",ENTRY_SIZE); truncate(filename,offset-remain); } else if(ch != '\n') { - printf(".csv file last char not newline, remove last line\n"); + printf("Corrupted .csv file last char not newline, removing last line\n"); truncate(filename,offset-ENTRY_SIZE); } } -- cgit v1.2.3-70-g09d2