diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-11-16 05:51:07 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-11-16 05:51:07 +0000 |
commit | 312063c97be346c3ce01faff021e9bff0464fa5c (patch) | |
tree | a4b33aa5242b3e1172379308804f3b06a89857bc /src/backend/storage/buffer | |
parent | 580d2bc60f0e225e3fffc4da81039cf28e249749 (diff) | |
download | postgresql-312063c97be346c3ce01faff021e9bff0464fa5c.tar.gz postgresql-312063c97be346c3ce01faff021e9bff0464fa5c.zip |
Make pgsql compile on FreeBSD-alpha.
Context diff this time.
Remove -m486 compile args for FreeBSD-i386, compile -O2 on i386.
Compile with only -O on alpha for codegen safety.
Make the port use the TEST_AND_SET for alpha and i386 on FreeBSD.
Fix a lot of bogus string formats for outputting pointers (cast to int
and %u/%x replaced with no cast and %p), and 'Size'(size_t) are now
cast to 'unsigned long' and output with %lu/
Remove an unused variable.
Alfred Perlstein
Diffstat (limited to 'src/backend/storage/buffer')
-rw-r--r-- | src/backend/storage/buffer/s_lock.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/storage/buffer/s_lock.c b/src/backend/storage/buffer/s_lock.c index fae4ab3c934..883c150b923 100644 --- a/src/backend/storage/buffer/s_lock.c +++ b/src/backend/storage/buffer/s_lock.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.24 2000/01/26 05:56:52 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.25 2000/11/16 05:51:01 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -43,11 +43,11 @@ static void s_lock_stuck(volatile slock_t *lock, const char *file, const int line) { fprintf(stderr, - "\nFATAL: s_lock(%08x) at %s:%d, stuck spinlock. Aborting.\n", - (unsigned int) lock, file, line); + "\nFATAL: s_lock(%p) at %s:%d, stuck spinlock. Aborting.\n", + lock, file, line); fprintf(stdout, - "\nFATAL: s_lock(%08x) at %s:%d, stuck spinlock. Aborting.\n", - (unsigned int) lock, file, line); + "\nFATAL: s_lock(%p) at %s:%d, stuck spinlock. Aborting.\n", + lock, file, line); abort(); } |