diff --git a/src/libs/zbxdbupgrade/dbupgrade_6050.c b/src/libs/zbxdbupgrade/dbupgrade_6050.c index 1fa8bff7eae..322ccf7c3a0 100644 --- a/src/libs/zbxdbupgrade/dbupgrade_6050.c +++ b/src/libs/zbxdbupgrade/dbupgrade_6050.c @@ -2093,21 +2093,23 @@ static int DBpatch_6050165(void) if (SUCCEED == zbx_db_is_null(row[4])) { zabbix_log(LOG_LEVEL_CRIT, - "Failed to save in DB function parameter->\n%s\n<-\n" - "(for function: '%s' with functionid '%s' on trigger '%s' " - "on host '%s').\n" - "Its resulting expected escaped form is: ->\n%s\n<-." - "Its resulting size " ZBX_FS_SIZE_T " is longer than the " - "maximum %d.\n " + "%s(): cannot save in DB function parameter: resulting size " + ZBX_FS_SIZE_T " is longer than the maximum %d.\n" + "functionid:%s function:'%s'\n" + "used on host: '%s'\n" + " in trigger: '%s'.\n" + "Current parameter value:\n" + "'%s'\n" + "Resulting escaped value would be:\n" + "'%s\n" "DB upgrade and Zabbix server can continue to run," " but to make sure this function works correctly\n" - " MANUAL INTERVENTION IS REQUIRED !\n" - - " Need to manually reduce the size of this parameter" - " with macro. \n", - row[1], row[2], row[0], row[5], row[3], tmp, - (zbx_fs_size_t)escaped_param_len, - ZBX_DBPATCH_FUNCTION_PARAM_LEN, tmp); + "MANUAL INTERVENTION IS REQUIRED !\n" + "Need to manually reduce the size of this parameter" + " with macro as a workaround.\n", + __func__, (zbx_fs_size_t)escaped_param_len, + ZBX_DBPATCH_FUNCTION_PARAM_LEN, row[0], row[2], row[3], row[5], + row[1], tmp); } } else