aboutsummaryrefslogtreecommitdiff
path: root/mycan.c
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-05-07 18:34:15 -0700
committerXiao Pan <xyz@flylightning.xyz>2025-05-07 18:34:15 -0700
commit34eb39da57c7ebb6c32591960e1cb111cc8de7cb (patch)
treec3128d22e4ae3d709bbd833c5794de6c506f61b8 /mycan.c
parentaabf4bac82657e48883358efe9b0ef35c2e4afd0 (diff)
Better prints
Diffstat (limited to 'mycan.c')
-rw-r--r--mycan.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}