From aa08e3370753402ab6759684811ea2e8b6aeb0b3 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Tue, 28 Nov 2006 15:32:06 +0000 Subject: [PATCH] Fixed problem saving hostnames in HAG. --- src/as/asLibRoutines.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/as/asLibRoutines.c b/src/as/asLibRoutines.c index e3b059e4c..183db7451 100644 --- a/src/as/asLibRoutines.c +++ b/src/as/asLibRoutines.c @@ -123,8 +123,8 @@ long epicsShareAPI asInitialize(ASINPUTFUNCPTR inputfunction) while(puagname) { pgphentry = gphAdd(pasbasenew->phash,puagname->user,puag); if(!pgphentry) { - epicsPrintf("UAG %s duplicate user = %s\n", - puag->name, puagname->user); + epicsPrintf("Duplicated user '%s' in UAG '%s'\n", + puagname->user, puag->name); } puagname = (UAGNAME *)ellNext((ELLNODE *)puagname); } @@ -136,8 +136,8 @@ long epicsShareAPI asInitialize(ASINPUTFUNCPTR inputfunction) while(phagname) { pgphentry = gphAdd(pasbasenew->phash,phagname->host,phag); if(!pgphentry) { - epicsPrintf("HAG %s duplicate host = %s\n", - phag->name,phagname->host); + epicsPrintf("Duplicated host '%s' in HAG '%s'\n", + phagname->host, phag->name); } phagname = (HAGNAME *)ellNext((ELLNODE *)phagname); } @@ -1177,7 +1177,7 @@ static long asHagAddHost(HAG *phag,const char *host) if (!phag) return 0; phagname = asCalloc(1, sizeof(HAGNAME)+strlen(host)+1); phagname->host = (char *)(phagname+1); - for (i = 0; i < strlen(phagname->host); i++) { + for (i = 0; i < strlen(host); i++) { phagname->host[i] = (char)tolower((int)host[i]); } ellAdd(&phag->list, (ELLNODE *)phagname);