From 276d279d0e02a185f600d0bb726c0a4b27cc6389 Mon Sep 17 00:00:00 2001 From: glenux Date: Thu, 19 Feb 2004 10:53:46 +0000 Subject: [PATCH] *** empty log message *** --- src/nzg_spaces.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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); }