From fa80a006b85cf1274ef700eaf2e7e5b0fc4947c2 Mon Sep 17 00:00:00 2001 From: Markus Goetz Date: Mon, 13 Apr 2015 14:58:25 +0200 Subject: [PATCH] CSync: Log if file_id is too long --- csync/src/vio/csync_vio_file_stat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/csync/src/vio/csync_vio_file_stat.c b/csync/src/vio/csync_vio_file_stat.c index ffbd102fc..7b640159b 100644 --- a/csync/src/vio/csync_vio_file_stat.c +++ b/csync/src/vio/csync_vio_file_stat.c @@ -20,6 +20,7 @@ #include "c_lib.h" #include "csync.h" +#include "csync_log.h" csync_vio_file_stat_t *csync_vio_file_stat_new(void) { csync_vio_file_stat_t *file_stat = (csync_vio_file_stat_t *) c_malloc(sizeof(csync_vio_file_stat_t)); @@ -70,6 +71,7 @@ void csync_vio_file_stat_set_file_id( csync_vio_file_stat_t *dst, const char* sr void csync_vio_set_file_id( char* dst, const char *src ) { if( src && dst ) { if( strlen(src) > FILE_ID_BUF_SIZE ) { + CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "Ignoring file_id because it is too long: %s", src); strcpy(dst, ""); } else { strcpy(dst, src); -- 2.30.2