cmd_list: fix double printf() mistake
cmd_delete: migrate to log.c
compile with -D_FORTIFY_SOURCE=2
cmd_check_batch: migrate to log.c