diff --git a/src/nzg_spaces.c b/src/nzg_spaces.c index a94995f..bc9f3be 100644 --- a/src/nzg_spaces.c +++ b/src/nzg_spaces.c @@ -33,7 +33,8 @@ msgSpace * msgSpaceCreate( MSGSPACE_DEFAULT_MODE ); if (mSFd == -1 ) { - fprintf( stderr, "msgSpace creation failed: %s\n", + fprintf( stderr, "msgSpace %s creation failed: %s\n", + (char*)nzgId, strerror( errno ) ); return NULL; } @@ -55,7 +56,7 @@ msgSpace * msgSpaceCreate( 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 */ close(mSFd); @@ -100,6 +101,7 @@ msgSpaceId msgSp2nzgId(msgSpaceId spaceId){ int slen; slen=strlen(spaceId); 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); }