*** empty log message ***

This commit is contained in:
glenux 2004-02-19 10:53:46 +00:00
parent 93c878b6f6
commit 276d279d0e

View file

@ -33,7 +33,8 @@ msgSpace * msgSpaceCreate(
MSGSPACE_DEFAULT_MODE MSGSPACE_DEFAULT_MODE
); );
if (mSFd == -1 ) { if (mSFd == -1 ) {
fprintf( stderr, "msgSpace creation failed: %s\n", fprintf( stderr, "msgSpace %s creation failed: %s\n",
(char*)nzgId,
strerror( errno ) ); strerror( errno ) );
return NULL; return NULL;
} }
@ -55,7 +56,7 @@ msgSpace * msgSpaceCreate(
return NULL; return NULL;
} }
printf( "Map addr is 0x%08x\n", mSAddr ); printf( "Map addr is 0x%08x\n", (int)mSAddr );
/* on ferme le descripteur du fichier */ /* on ferme le descripteur du fichier */
close(mSFd); close(mSFd);
@ -100,6 +101,7 @@ msgSpaceId msgSp2nzgId(msgSpaceId spaceId){
int slen; int slen;
slen=strlen(spaceId); slen=strlen(spaceId);
resNzgId = (char *)malloc(sizeof(char)*(slen+11)); resNzgId = (char *)malloc(sizeof(char)*(slen+11));
sprintf(resNzgId,"/tmp/.nzg-%s",(char *)spaceId); /* sprintf(resNzgId,"/tmp/.nzg-%s",(char *)spaceId); */
sprintf(resNzgId,"/nzgSpace%s",(char *)spaceId);
return ((msgSpaceId)resNzgId); return ((msgSpaceId)resNzgId);
} }