Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Scott <conrad.scott@dsl.pipex.com>2002-07-27 05:16:35 +0400
committerConrad Scott <conrad.scott@dsl.pipex.com>2002-07-27 05:16:35 +0400
commit44a01d9216e87ccd62a0116cb9fc9c29cf7b0ad0 (patch)
tree3d2a6a83454ce7e22f94c53bfcab1e93cdc6fcb0
parent9cbe8ebabc29386f17855defec95615679450c4e (diff)
* cygserver_shm.cc (with_strerr): Fix use of %p format.
* shm.cc (client_shmmgr::shmat): Ditto. (client_shmmgr::shmctl): Ditto. (client_shmmgr::shmdt): Ditto. (client_shmmgr::attach): Ditto.
-rw-r--r--winsup/cygwin/ChangeLog8
-rwxr-xr-xwinsup/cygwin/cygserver_shm.cc2
-rw-r--r--winsup/cygwin/shm.cc26
3 files changed, 22 insertions, 14 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index cf1c64b55..91abe87be 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,11 @@
+2002-07-27 Conrad Scott <conrad.scott@dsl.pipex.com>
+
+ * cygserver_shm.cc (with_strerr): Fix use of %p format.
+ * shm.cc (client_shmmgr::shmat): Ditto.
+ (client_shmmgr::shmctl): Ditto.
+ (client_shmmgr::shmdt): Ditto.
+ (client_shmmgr::attach): Ditto.
+
2002-07-25 Christopher Faylor <cgf@redhat.com>
* security.cc (allow_ntsec): Default to on.
diff --git a/winsup/cygwin/cygserver_shm.cc b/winsup/cygwin/cygserver_shm.cc
index 061ab247d..297438df2 100755
--- a/winsup/cygwin/cygserver_shm.cc
+++ b/winsup/cygwin/cygserver_shm.cc
@@ -63,7 +63,7 @@ details. */
{ ACTION; } \
if (MSG && !LocalFree (MSG)) \
{ \
- system_printf ("failed to free memory at 0x%p, error = %lu", \
+ system_printf ("failed to free memory at %p, error = %lu", \
MSG, GetLastError ()); \
} \
SetLastError (lasterr); \
diff --git a/winsup/cygwin/shm.cc b/winsup/cygwin/shm.cc
index 1813a23ba..9ca49d5ba 100644
--- a/winsup/cygwin/shm.cc
+++ b/winsup/cygwin/shm.cc
@@ -162,7 +162,7 @@ client_shmmgr::shmat (const int shmid,
const void *const shmaddr,
const int shmflg)
{
- syscall_printf ("shmat (shmid = %d, shmaddr = 0x%p, shmflg = 0%o)",
+ syscall_printf ("shmat (shmid = %d, shmaddr = %p, shmflg = 0%o)",
shmid, shmaddr, shmflg);
EnterCriticalSection (&_segments_lock);
@@ -177,7 +177,7 @@ client_shmmgr::shmat (const int shmid,
LeaveCriticalSection (&_segments_lock);
if (ptr)
- syscall_printf ("0x%p = shmat (shmid = %d, shmaddr = 0x%p, shmflg = 0%o)",
+ syscall_printf ("%p = shmat (shmid = %d, shmaddr = %p, shmflg = 0%o)",
ptr, shmid, shmaddr, shmflg);
// else
// See the syscall_printf in client_shmmgr::attach ().
@@ -194,7 +194,7 @@ client_shmmgr::shmctl (const int shmid,
const int cmd,
struct shmid_ds *const buf)
{
- syscall_printf ("shmctl (shmid = %d, cmd = 0x%x, buf = 0x%p)",
+ syscall_printf ("shmctl (shmid = %d, cmd = 0x%x, buf = %p)",
shmid, cmd, buf);
// Check parameters and set up in parameters as required.
@@ -207,7 +207,7 @@ client_shmmgr::shmctl (const int shmid,
if (__check_invalid_read_ptr_errno (buf, sizeof (struct shmid_ds)))
{
syscall_printf (("-1 [EFAULT] = "
- "shmctl (shmid = %d, cmd = 0x%x, buf = 0x%p)"),
+ "shmctl (shmid = %d, cmd = 0x%x, buf = %p)"),
shmid, cmd, buf);
set_errno (EFAULT);
return -1;
@@ -220,7 +220,7 @@ client_shmmgr::shmctl (const int shmid,
if (__check_null_invalid_struct_errno (buf, sizeof (struct shmid_ds)))
{
syscall_printf (("-1 [EFAULT] = "
- "shmctl (shmid = %d, cmd = 0x%x, buf = 0x%p)"),
+ "shmctl (shmid = %d, cmd = 0x%x, buf = %p)"),
shmid, cmd, buf);
set_errno (EFAULT);
return -1;
@@ -231,7 +231,7 @@ client_shmmgr::shmctl (const int shmid,
if (__check_null_invalid_struct_errno (buf, sizeof (struct shminfo)))
{
syscall_printf (("-1 [EFAULT] = "
- "shmctl (shmid = %d, cmd = 0x%x, buf = 0x%p)"),
+ "shmctl (shmid = %d, cmd = 0x%x, buf = %p)"),
shmid, cmd, buf);
set_errno (EFAULT);
return -1;
@@ -242,7 +242,7 @@ client_shmmgr::shmctl (const int shmid,
if (__check_null_invalid_struct_errno (buf, sizeof (struct shm_info)))
{
syscall_printf (("-1 [EFAULT] = "
- "shmctl (shmid = %d, cmd = 0x%x, buf = 0x%p)"),
+ "shmctl (shmid = %d, cmd = 0x%x, buf = %p)"),
shmid, cmd, buf);
set_errno (EFAULT);
return -1;
@@ -257,7 +257,7 @@ client_shmmgr::shmctl (const int shmid,
if (request.make_request () == -1 || request.error_code ())
{
syscall_printf (("-1 [%d] = "
- "shmctl (shmid = %d, cmd = 0x%x, buf = 0x%p)"),
+ "shmctl (shmid = %d, cmd = 0x%x, buf = %p)"),
request.error_code (), shmid, cmd, buf);
set_errno (request.error_code ());
return -1;
@@ -288,7 +288,7 @@ client_shmmgr::shmctl (const int shmid,
break;
}
- syscall_printf ("%d = shmctl (shmid = %d, cmd = 0x%x, buf = 0x%p)",
+ syscall_printf ("%d = shmctl (shmid = %d, cmd = 0x%x, buf = %p)",
result, shmid, cmd, buf);
return result;
@@ -306,7 +306,7 @@ client_shmmgr::shmctl (const int shmid,
int
client_shmmgr::shmdt (const void *const shmaddr)
{
- syscall_printf ("shmdt (shmaddr = 0x%p)", shmaddr);
+ syscall_printf ("shmdt (shmaddr = %p)", shmaddr);
EnterCriticalSection (&_segments_lock);
@@ -317,7 +317,7 @@ client_shmmgr::shmdt (const void *const shmaddr)
if (!segptr)
{
LeaveCriticalSection (&_segments_lock);
- syscall_printf ("-1 [EINVAL] = shmdt (shmaddr = 0x%p)", shmaddr);
+ syscall_printf ("-1 [EINVAL] = shmdt (shmaddr = %p)", shmaddr);
set_errno (EINVAL);
return -1;
}
@@ -361,7 +361,7 @@ client_shmmgr::shmdt (const void *const shmaddr)
safe_delete (segment_t, segptr);
- syscall_printf ("0 = shmdt (shmaddr = 0x%p)", shmaddr);
+ syscall_printf ("0 = shmdt (shmaddr = %p)", shmaddr);
return 0;
}
@@ -496,7 +496,7 @@ client_shmmgr::attach (const int shmid,
if (request.make_request () == -1 || request.error_code ())
{
syscall_printf (("-1 [%d] = "
- "shmat (shmid = %d, shmaddr = 0x%p, shmflg = 0%o)"),
+ "shmat (shmid = %d, shmaddr = %p, shmflg = 0%o)"),
request.error_code (), shmid, shmaddr, shmflg);
set_errno (request.error_code ());
return NULL;