better idea to align the INSTRUCTIONs printf(%-20s,...)

This commit is contained in:
Christian Jann 2011-04-12 19:42:08 +02:00
parent 9c40ecafc4
commit ffd7d5b247
2 changed files with 14 additions and 14 deletions

View File

@ -243,14 +243,14 @@ static int _csync_merge_algorithm_visitor(void *obj, void *data) {
if(cur->type == CSYNC_FTW_TYPE_DIR)
{
CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE,
"%s dir: %s",
"%-20s dir: %s",
csync_instruction_str(cur->instruction),
cur->path);
}
else
{
CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE,
"%s file: %s",
"%-20s file: %s",
csync_instruction_str(cur->instruction),
cur->path);
}
@ -260,14 +260,14 @@ static int _csync_merge_algorithm_visitor(void *obj, void *data) {
if(cur->type == CSYNC_FTW_TYPE_DIR)
{
CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG,
"%s dir: %s",
"%-20s dir: %s",
csync_instruction_str(cur->instruction),
cur->path);
}
else
{
CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG,
"%s file: %s",
"%-20s file: %s",
csync_instruction_str(cur->instruction),
cur->path);
}

View File

@ -40,18 +40,18 @@ typedef struct {
static const _instr_code_struct _instr[] =
{
{ "INSTRUCTION_NONE ", CSYNC_INSTRUCTION_NONE },
{ "INSTRUCTION_EVAL ", CSYNC_INSTRUCTION_EVAL },
{ "INSTRUCTION_REMOVE ", CSYNC_INSTRUCTION_REMOVE },
{ "INSTRUCTION_RENAME ", CSYNC_INSTRUCTION_RENAME },
{ "INSTRUCTION_NEW ", CSYNC_INSTRUCTION_NEW },
{ "INSTRUCTION_NONE", CSYNC_INSTRUCTION_NONE },
{ "INSTRUCTION_EVAL", CSYNC_INSTRUCTION_EVAL },
{ "INSTRUCTION_REMOVE", CSYNC_INSTRUCTION_REMOVE },
{ "INSTRUCTION_RENAME", CSYNC_INSTRUCTION_RENAME },
{ "INSTRUCTION_NEW", CSYNC_INSTRUCTION_NEW },
{ "INSTRUCTION_CONFLICT", CSYNC_INSTRUCTION_CONFLICT },
{ "INSTRUCTION_IGNORE ", CSYNC_INSTRUCTION_IGNORE },
{ "INSTRUCTION_SYNC ", CSYNC_INSTRUCTION_SYNC },
{ "INSTRUCTION_IGNORE", CSYNC_INSTRUCTION_IGNORE },
{ "INSTRUCTION_SYNC", CSYNC_INSTRUCTION_SYNC },
{ "INSTRUCTION_STAT_ERR", CSYNC_INSTRUCTION_STAT_ERROR },
{ "INSTRUCTION_ERROR ", CSYNC_INSTRUCTION_ERROR },
{ "INSTRUCTION_DELETED ", CSYNC_INSTRUCTION_DELETED },
{ "INSTRUCTION_UPDATED ", CSYNC_INSTRUCTION_UPDATED },
{ "INSTRUCTION_ERROR", CSYNC_INSTRUCTION_ERROR },
{ "INSTRUCTION_DELETED", CSYNC_INSTRUCTION_DELETED },
{ "INSTRUCTION_UPDATED", CSYNC_INSTRUCTION_UPDATED },
{ NULL, CSYNC_INSTRUCTION_ERROR }
};