summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Jennings <mej@kainx.org>1999-10-27 13:39:30 +0000
committerMichael Jennings <mej@kainx.org>1999-10-27 13:39:30 +0000
commitdad7bc5f2ce041db5a60ede2638a583fcfbe2969 (patch)
tree21b7d87d2f9848d35dccc6384d6bb0e81f3ca1d8
parent0193b323db8105b8fa524c01acd1efe8bbccc329 (diff)
downloadeterm-dad7bc5f2ce041db5a60ede2638a583fcfbe2969.tar.gz
Wed Oct 27 14:11:11 PDT 1999 Michael Jennings <mej@eterm.org>
64-bit cleanliness changes. SVN revision: 998
-rw-r--r--ChangeLog11
-rw-r--r--configure.in2
-rw-r--r--libmej/mem.c18
-rw-r--r--libmej/strings.c3
-rw-r--r--src/command.c4
-rw-r--r--src/events.c34
-rw-r--r--src/font.c12
-rw-r--r--src/menus.c16
-rw-r--r--src/pixmap.c10
-rw-r--r--src/scrollbar.c18
-rw-r--r--src/timer.c2
-rw-r--r--utils/Esetroot.c8
12 files changed, 71 insertions, 67 deletions
diff --git a/ChangeLog b/ChangeLog
index 286a7b1..2161fd8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2624,11 +2624,16 @@ Tue Oct 19 16:34:51 PDT 1999 Michael Jennings <mej@eterm.org>
extern int unlockpt(int fd);
-------------------------------------------------------------------------------
-
-Tue Oct 26 16:28:34 PDT 1999
-(Mandrake)
+Tue Oct 26 16:28:34 PDT 1999 Mandrake <mandrake@mandrake.net>
I hate the default behaviour for tripleclick, and there's an option
to turn it off. however, it isn't documented in the default theme
anywhere. So, I fixed that annoyance and put it in the sample
Eterm theme.cfg file (set to the default value, not the OTW)
+
+-------------------------------------------------------------------------------
+Wed Oct 27 14:11:11 PDT 1999 Michael Jennings <mej@eterm.org>
+
+ 64-bit cleanliness changes.
+
+-------------------------------------------------------------------------------
diff --git a/configure.in b/configure.in
index ff303ac..e199820 100644
--- a/configure.in
+++ b/configure.in
@@ -187,7 +187,7 @@ AC_CHECK_FUNC(unlockpt,
dnl# Check for the appropriate pty mechanism
AC_MSG_CHECKING(for pty mechanism)
PTY_MECH=""
-if test -e /dev/ptc ; then
+if test -c /dev/ptc ; then
AC_DEFINE(HAVE_DEV_PTC)
PTY_MECH="AIX $PTY_MECH"
fi
diff --git a/libmej/mem.c b/libmej/mem.c
index cac061d..da8fd64 100644
--- a/libmej/mem.c
+++ b/libmej/mem.c
@@ -96,7 +96,7 @@ memrec_add_var(void *ptr, size_t size)
if ((memrec.Size = (size_t *) realloc(memrec.Size, sizeof(size_t) * memrec.Count)) == NULL) {
D_MALLOC(("Unable to reallocate pointer size list -- %s\n", strerror(errno)));
}
- D_MALLOC(("Adding variable of size %lu at 0x%08x\n", size, ptr));
+ D_MALLOC(("Adding variable of size %lu at %8p\n", size, ptr));
memrec.Ptrs[memrec.Count - 1] = ptr;
memrec.Size[memrec.Count - 1] = size;
#if 0
@@ -118,11 +118,11 @@ memrec_rem_var(void *ptr)
memrec_dump();
#endif
D_MALLOC(("Attempt to remove a pointer not allocated with Malloc/Realloc:"
- " 0x%08x\n", ptr));
+ " %8p\n", ptr));
return;
}
memrec.Count--;
- D_MALLOC(("Removing variable of size %lu at 0x%08x\n", memrec.Size[i], memrec.Ptrs[i]));
+ D_MALLOC(("Removing variable of size %lu at %8p\n", memrec.Size[i], memrec.Ptrs[i]));
memmove(memrec.Ptrs + i, memrec.Ptrs + i + 1, sizeof(void *) * (memrec.Count - i));
memmove(memrec.Size + i, memrec.Size + i + 1, sizeof(size_t) * (memrec.Count - i));
@@ -148,11 +148,11 @@ memrec_chg_var(void *oldp, void *newp, size_t size)
memrec_dump();
#endif
D_MALLOC(("Attempt to move a pointer not allocated with Malloc/Realloc:"
- " 0x%08x\n", oldp));
+ " %8p\n", oldp));
return;
}
- D_MALLOC(("Changing variable of %lu bytes at 0x%08x to one "
- "of %lu bytes at 0x%08x\n", memrec.Size[i], memrec.Ptrs[i], size, newp));
+ D_MALLOC(("Changing variable of %lu bytes at %8p to one "
+ "of %lu bytes at %8p\n", memrec.Size[i], memrec.Ptrs[i], size, newp));
memrec.Ptrs[i] = newp;
memrec.Size[i] = size;
#if 0
@@ -178,7 +178,7 @@ memrec_dump(void)
len2 = sizeof(size_t) * memrec.Count;
for (ptr = (unsigned char *) memrec.Ptrs, j = 0; j < len1; j += 8) {
- fprintf(stderr, "DUMP :: %07lu | %08X | %06lu | %07X | ", (unsigned long) 0, (unsigned int) memrec.Ptrs, (unsigned long) (sizeof(void *) * memrec.Count), (unsigned int) j);
+ fprintf(stderr, "DUMP :: %07lu | %8p | %06lu | %07x | ", (unsigned long) 0, memrec.Ptrs, (unsigned long) (sizeof(void *) * memrec.Count), (unsigned int) j);
l = ((len1 - j < 8) ? (len1 - j) : (8));
memset(buff, 0, 9);
@@ -193,7 +193,7 @@ memrec_dump(void)
fflush(stderr);
}
for (ptr = (unsigned char *) memrec.Size, j = 0; j < len2; j += 8) {
- fprintf(stderr, "DUMP :: %07lu | %08x | %06lu | %07X | ", (unsigned long) 0, (unsigned int) memrec.Size, sizeof(size_t) * memrec.Count, (unsigned int) j);
+ fprintf(stderr, "DUMP :: %07lu | %8p | %06lu | %07x | ", (unsigned long) 0, memrec.Size, sizeof(size_t) * memrec.Count, (unsigned int) j);
l = ((len2 - j < 8) ? (len2 - j) : (8));
memset(buff, 0, 9);
memcpy(buff, ptr + j, l);
@@ -209,7 +209,7 @@ memrec_dump(void)
for (i = 0; i < memrec.Count; i++) {
total += memrec.Size[i];
for (ptr = (unsigned char *) memrec.Ptrs[i], j = 0; j < memrec.Size[i]; j += 8) {
- fprintf(stderr, "DUMP :: %07lu | %08x | %06lu | %07X | ", i + 1, (unsigned int) memrec.Ptrs[i], (unsigned long) memrec.Size[i], (unsigned int) j);
+ fprintf(stderr, "DUMP :: %07lu | %8p | %06lu | %07x | ", i + 1, memrec.Ptrs[i], (unsigned long) memrec.Size[i], (unsigned int) j);
l = ((memrec.Size[i] - j < 8) ? (memrec.Size[i] - j) : (8));
memset(buff, 0, 9);
memcpy(buff, ptr + j, l);
diff --git a/libmej/strings.c b/libmej/strings.c
index b98361a..2f4cdaa 100644
--- a/libmej/strings.c
+++ b/libmej/strings.c
@@ -567,8 +567,7 @@ HexDump(void *buff, register size_t count)
fprintf(stderr, " Address | Size | Offset | 00 01 02 03 04 05 06 07 | ASCII \n");
fprintf(stderr, "---------+--------+---------+-------------------------+---------\n");
for (ptr = (unsigned char *) buff, j = 0; j < count; j += 8) {
- fprintf(stderr, " %08x | %06lu | %07x | ", (unsigned int) buff,
- (unsigned long) count, (unsigned int) j);
+ fprintf(stderr, " %8p | %06lu | %07x | ", buff, (unsigned long) count, (unsigned int) j);
l = ((count - j < 8) ? (count - j) : (8));
memset(buffr, 0, 9);
memcpy(buffr, ptr + j, l);
diff --git a/src/command.c b/src/command.c
index cca54f8..af62914 100644
--- a/src/command.c
+++ b/src/command.c
@@ -2564,9 +2564,9 @@ main_loop(void)
break;
}
}
- D_SCREEN(("Adding lines, str == 0x%08x, cmdbuf_ptr == 0x%08x, cmdbuf_endp == 0x%08x\n", str, cmdbuf_ptr,
+ D_SCREEN(("Adding lines, str == %8p, cmdbuf_ptr == %8p, cmdbuf_endp == %8p\n", str, cmdbuf_ptr,
cmdbuf_endp));
- D_SCREEN(("Command buffer base == 0x%08x, length %lu, end at 0x%08x\n", cmdbuf_base, CMD_BUF_SIZE,
+ D_SCREEN(("Command buffer base == %8p, length %lu, end at %8p\n", cmdbuf_base, CMD_BUF_SIZE,
cmdbuf_base + CMD_BUF_SIZE - 1));
scr_add_lines(str, nlines, (cmdbuf_ptr - str));
} else {
diff --git a/src/events.c b/src/events.c
index 1e30bfa..f36c63a 100644
--- a/src/events.c
+++ b/src/events.c
@@ -212,7 +212,7 @@ handle_key_press(event_t * ev)
#endif
P_SETTIMEVAL(keypress_start);
- D_EVENTS(("handle_key_press(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("handle_key_press(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
COUNT_EVENT(keypress_cnt);
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &primary_data), 0);
lookup_key(ev);
@@ -227,7 +227,7 @@ handle_property_notify(event_t * ev)
Atom prop;
- D_EVENTS(("handle_property_notify(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("handle_property_notify(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
if (background_is_trans()) {
if ((ev->xany.window == TermWin.parent) || (ev->xany.window == Xroot)) {
@@ -265,7 +265,7 @@ unsigned char
handle_destroy_notify(event_t * ev)
{
- D_EVENTS(("handle_destroy_notify(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("handle_destroy_notify(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
if (ev->xdestroywindow.window == ipc_win) {
D_EVENTS((" -> IPC window 0x%08x changed/destroyed. Clearing ipc_win.\n", ipc_win));
@@ -280,7 +280,7 @@ unsigned char
handle_client_message(event_t * ev)
{
- D_EVENTS(("handle_client_message(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("handle_client_message(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &primary_data), 0);
@@ -321,7 +321,7 @@ unsigned char
handle_mapping_notify(event_t * ev)
{
- D_EVENTS(("handle_mapping_notify(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("handle_mapping_notify(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
XRefreshKeyboardMapping(&(ev->xmapping));
return 1;
@@ -331,7 +331,7 @@ unsigned char
handle_visibility_notify(event_t * ev)
{
- D_EVENTS(("handle_visibility_notify(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("handle_visibility_notify(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &primary_data), 0);
switch (ev->xvisibility.state) {
@@ -355,7 +355,7 @@ unsigned char
handle_focus_in(event_t * ev)
{
- D_EVENTS(("handle_focus_in(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("handle_focus_in(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &primary_data), 0);
if (!TermWin.focus) {
@@ -379,7 +379,7 @@ unsigned char
handle_focus_out(event_t * ev)
{
- D_EVENTS(("handle_focus_out(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("handle_focus_out(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &primary_data), 0);
if (TermWin.focus) {
@@ -404,7 +404,7 @@ handle_configure_notify(event_t * ev)
{
XEvent unused_xevent;
- D_EVENTS(("handle_configure_notify(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("handle_configure_notify(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &primary_data), 0);
@@ -420,7 +420,7 @@ unsigned char
handle_selection_clear(event_t * ev)
{
- D_EVENTS(("handle_selection_clear(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("handle_selection_clear(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
selection_clear();
return 1;
@@ -430,7 +430,7 @@ unsigned char
handle_selection_notify(event_t * ev)
{
- D_EVENTS(("handle_selection_notify(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("handle_selection_notify(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
selection_paste(ev->xselection.requestor, ev->xselection.property, True);
return 1;
@@ -440,7 +440,7 @@ unsigned char
handle_selection_request(event_t * ev)
{
- D_EVENTS(("handle_selection_request(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("handle_selection_request(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
selection_send(&(ev->xselectionrequest));
return 1;
@@ -458,7 +458,7 @@ handle_expose(event_t * ev)
#endif
P_SETTIMEVAL(expose_start);
- D_EVENTS(("handle_expose(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("handle_expose(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &primary_data), 0);
if (ev->xany.window == TermWin.vt) {
@@ -486,7 +486,7 @@ unsigned char
handle_button_press(event_t * ev)
{
- D_EVENTS(("handle_button_press(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("handle_button_press(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &primary_data), 0);
if (Options & Opt_borderless) {
@@ -551,7 +551,7 @@ unsigned char
handle_button_release(event_t * ev)
{
- D_EVENTS(("handle_button_release(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("handle_button_release(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
if (button_state.ignore_release == 1) {
button_state.ignore_release = 0;
@@ -616,7 +616,7 @@ handle_motion_notify(event_t * ev)
struct timeval motion_start, motion_stop;
#endif
- D_EVENTS(("handle_motion_notify(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("handle_motion_notify(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
COUNT_EVENT(motion_cnt);
P_SETTIMEVAL(motion_start);
@@ -654,7 +654,7 @@ process_x_event(event_t * ev)
#endif
COUNT_EVENT(event_cnt);
- D_EVENTS(("process_x_event(ev [0x%08x] %s on window 0x%08x)\n", ev, event_type_to_name(ev->xany.type), ev->xany.window));
+ D_EVENTS(("process_x_event(ev [%8p] %s on window 0x%08x)\n", ev, event_type_to_name(ev->xany.type), ev->xany.window));
if (primary_data.handlers[ev->type] != NULL) {
return ((primary_data.handlers[ev->type]) (ev));
}
diff --git a/src/font.c b/src/font.c
index 0406d75..3c0cd0c 100644
--- a/src/font.c
+++ b/src/font.c
@@ -62,7 +62,7 @@ font_cache_add(const char *name, unsigned char type, void *info) {
etfont_t *font;
- D_FONT(("font_cache_add(%s, %d, 0x%08x) called.\n", NONULL(name), type, (int) info));
+ D_FONT(("font_cache_add(%s, %d, %8p) called.\n", NONULL(name), type, info));
font = (etfont_t *) MALLOC(sizeof(etfont_t));
font->name = StrDup(name);
@@ -90,13 +90,13 @@ font_cache_del(const void *info) {
etfont_t *current, *tmp;
- D_FONT(("font_cache_del(0x%08x) called.\n", (int) info));
+ D_FONT(("font_cache_del(%8p) called.\n", info));
if (font_cache == NULL) {
return;
}
if (((font_cache->type == FONT_TYPE_X) && (font_cache->fontinfo.xfontinfo == (XFontStruct *) info))) {
- D_FONT((" -> Match found at font_cache (0x%08x). Font name is \"%s\"\n", (int) font_cache, NONULL(font_cache->name)));
+ D_FONT((" -> Match found at font_cache (%8p). Font name is \"%s\"\n", font_cache, NONULL(font_cache->name)));
if (--(font_cache->ref_cnt) == 0) {
D_FONT((" -> Reference count is now 0. Deleting from cache.\n"));
current = font_cache;
@@ -113,7 +113,7 @@ font_cache_del(const void *info) {
} else {
for (current = font_cache; current->next; current = current->next) {
if (((current->next->type == FONT_TYPE_X) && (current->next->fontinfo.xfontinfo == (XFontStruct *) info))) {
- D_FONT((" -> Match found at current->next (0x%08x, current == 0x%08x). Font name is \"%s\"\n", (int) current->next, (int) current, NONULL(current->next->name)));
+ D_FONT((" -> Match found at current->next (%8p, current == %8p). Font name is \"%s\"\n", current->next, current, NONULL(current->next->name)));
if (--(current->next->ref_cnt) == 0) {
D_FONT((" -> Reference count is now 0. Deleting from cache.\n"));
tmp = current->next;
@@ -142,7 +142,7 @@ font_cache_find(const char *name, unsigned char type) {
D_FONT(("font_cache_find(%s, %d) called.\n", NONULL(name), type));
for (current = font_cache; current; current = current->next) {
- D_FONT((" -> Checking current (0x%08x), type == %d, name == %s\n", current, current->type, NONULL(current->name)));
+ D_FONT((" -> Checking current (%8p), type == %d, name == %s\n", current, current->type, NONULL(current->name)));
if ((current->type == type) && !strcasecmp(current->name, name)) {
D_FONT((" -> Match!\n"));
return (current);
@@ -162,7 +162,7 @@ font_cache_find_info(const char *name, unsigned char type) {
D_FONT(("font_cache_find_info(%s, %d) called.\n", NONULL(name), type));
for (current = font_cache; current; current = current->next) {
- D_FONT((" -> Checking current (0x%08x), type == %d, name == %s\n", current, current->type, NONULL(current->name)));
+ D_FONT((" -> Checking current (%8p), type == %d, name == %s\n", current, current->type, NONULL(current->name)));
if ((current->type == type) && !strcasecmp(current->name, name)) {
D_FONT((" -> Match!\n"));
switch (type) {
diff --git a/src/menus.c b/src/menus.c
index 901f30c..ad22c28 100644
--- a/src/menus.c
+++ b/src/menus.c
@@ -164,7 +164,7 @@ menu_handle_enter_notify(event_t * ev)
register menu_t *menu;
- D_EVENTS(("menu_handle_enter_notify(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("menu_handle_enter_notify(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &menu_event_data), 0);
@@ -187,7 +187,7 @@ unsigned char
menu_handle_leave_notify(event_t * ev)
{
- D_EVENTS(("menu_handle_leave_notify(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("menu_handle_leave_notify(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &menu_event_data), 0);
@@ -201,7 +201,7 @@ unsigned char
menu_handle_focus_in(event_t * ev)
{
- D_EVENTS(("menu_handle_focus_in(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("menu_handle_focus_in(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &menu_event_data), 0);
@@ -212,7 +212,7 @@ unsigned char
menu_handle_focus_out(event_t * ev)
{
- D_EVENTS(("menu_handle_focus_out(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("menu_handle_focus_out(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &menu_event_data), 0);
@@ -225,7 +225,7 @@ menu_handle_expose(event_t * ev)
XEvent unused_xevent;
- D_EVENTS(("menu_handle_expose(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("menu_handle_expose(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &menu_event_data), 0);
@@ -238,7 +238,7 @@ unsigned char
menu_handle_button_press(event_t * ev)
{
- D_EVENTS(("menu_handle_button_press(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("menu_handle_button_press(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &menu_event_data), 0);
@@ -254,7 +254,7 @@ menu_handle_button_release(event_t * ev)
{
menuitem_t *item;
- D_EVENTS(("menu_handle_button_release(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("menu_handle_button_release(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &menu_event_data), 0);
@@ -318,7 +318,7 @@ menu_handle_motion_notify(event_t * ev)
register menuitem_t *item = NULL;
- D_EVENTS(("menu_handle_motion_notify(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("menu_handle_motion_notify(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &menu_event_data), 0);
diff --git a/src/pixmap.c b/src/pixmap.c
index 161f66b..548077a 100644
--- a/src/pixmap.c
+++ b/src/pixmap.c
@@ -372,7 +372,7 @@ paste_simage(simage_t *simg, unsigned char which, Window win, unsigned short x,
ASSERT(simg != NULL);
REQUIRE(win != None);
- D_PIXMAP(("paste_simage(0x%08x, %s, 0x%08x, %hd, %hd, %hd, %hd) called.\n", (int) simg, get_image_type(which), (int) win, x, y, w, h));
+ D_PIXMAP(("paste_simage(%8p, %s, 0x%08x, %hd, %hd, %hd, %hd) called.\n", simg, get_image_type(which), (int) win, x, y, w, h));
if ((images[which].mode & MODE_AUTO) && (images[which].mode & ALLOW_AUTO)) {
char buff[255], *reply;
@@ -507,7 +507,7 @@ render_simage(simage_t * simg, Window win, unsigned short width, unsigned short
ASSERT(simg->iml != NULL);
ASSERT(simg->pmap != NULL);
- D_PIXMAP(("render_simage(): Rendering simg->iml->im 0x%08x (%s) at %hux%hu onto window 0x%08x\n", simg->iml->im, get_image_type(which), width, height, win));
+ D_PIXMAP(("render_simage(): Rendering simg->iml->im %8p (%s) at %hux%hu onto window 0x%08x\n", simg->iml->im, get_image_type(which), width, height, win));
D_PIXMAP(("render_simage(): Image mode is 0x%02x\n", images[which].mode));
if ((which == image_bg) && image_mode_is(image_bg, MODE_VIEWPORT)) {
@@ -750,7 +750,7 @@ render_simage(simage_t * simg, Window win, unsigned short width, unsigned short
simg->iml->bmod->gamma, simg->iml->bmod->brightness, simg->iml->bmod->contrast));
Imlib_set_image_blue_modifier(imlib_id, simg->iml->im, simg->iml->bmod);
}
- D_PIXMAP(("render_simage(): Rendering image simg->iml->im [0x%08x] to %hdx%hd pixmap\n", simg->iml->im, xscaled, yscaled));
+ D_PIXMAP(("render_simage(): Rendering image simg->iml->im [%8p] to %hdx%hd pixmap\n", simg->iml->im, xscaled, yscaled));
Imlib_render(imlib_id, simg->iml->im, xscaled, yscaled);
rendered = 1;
}
@@ -963,7 +963,7 @@ load_image(const char *file, short type)
reset_simage(images[type].current, (RESET_IMLIB_IM | RESET_PMAP_PIXMAP | RESET_PMAP_MASK));
images[type].current->iml->im = img.im;
}
- D_PIXMAP(("load_image() exiting. images[%s].current->iml->im == 0x%08x\n", get_image_type(type), images[type].current->iml->im));
+ D_PIXMAP(("load_image() exiting. images[%s].current->iml->im == %8p\n", get_image_type(type), images[type].current->iml->im));
return 1;
}
}
@@ -1072,7 +1072,7 @@ colormod_trans(Pixmap p, GC gc, unsigned short w, unsigned short h)
p, w, h);
return;
}
- D_PIXMAP(("XGetImage(Xdisplay, 0x%08x, 0, 0, %d, %d, -1, ZPixmap) returned 0x%08x.", p, w, h, ximg));
+ D_PIXMAP(("XGetImage(Xdisplay, 0x%08x, 0, 0, %d, %d, -1, ZPixmap) returned %8p.", p, w, h, ximg));
if (Xdepth <= 8) {
D_PIXMAP(("Rendering low-depth image, depth == %d\n", (int) Xdepth));
for (y = 0; y < h; y++) {
diff --git a/src/scrollbar.c b/src/scrollbar.c
index dbb45b8..881cc4a 100644
--- a/src/scrollbar.c
+++ b/src/scrollbar.c
@@ -272,7 +272,7 @@ unsigned char
sb_handle_configure_notify(event_t * ev)
{
- D_EVENTS(("sb_handle_configure_notify(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("sb_handle_configure_notify(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_PARENT(ev, &scrollbar_event_data), 0);
@@ -284,7 +284,7 @@ unsigned char
sb_handle_enter_notify(event_t * ev)
{
- D_EVENTS(("sb_handle_enter_notify(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("sb_handle_enter_notify(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &scrollbar_event_data), 0);
@@ -311,7 +311,7 @@ unsigned char
sb_handle_leave_notify(event_t * ev)
{
- D_EVENTS(("sb_handle_leave_notify(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("sb_handle_leave_notify(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &scrollbar_event_data), 0);
@@ -338,7 +338,7 @@ unsigned char
sb_handle_focus_in(event_t * ev)
{
- D_EVENTS(("sb_handle_focus_in(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("sb_handle_focus_in(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &scrollbar_event_data), 0);
@@ -349,7 +349,7 @@ unsigned char
sb_handle_focus_out(event_t * ev)
{
- D_EVENTS(("sb_handle_focus_out(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("sb_handle_focus_out(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &scrollbar_event_data), 0);
@@ -362,7 +362,7 @@ sb_handle_expose(event_t * ev)
XEvent unused_xevent;
- D_EVENTS(("sb_handle_expose(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("sb_handle_expose(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &scrollbar_event_data), 0);
@@ -378,7 +378,7 @@ unsigned char
sb_handle_button_press(event_t * ev)
{
- D_EVENTS(("sb_handle_button_press(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("sb_handle_button_press(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &scrollbar_event_data), 0);
@@ -500,7 +500,7 @@ sb_handle_button_release(event_t * ev)
Window root, child;
int root_x, root_y, win_x, win_y, mask;
- D_EVENTS(("sb_handle_button_release(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("sb_handle_button_release(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &scrollbar_event_data), 0);
button_state.mouse_offset = 0;
@@ -557,7 +557,7 @@ unsigned char
sb_handle_motion_notify(event_t * ev)
{
- D_EVENTS(("sb_handle_motion_notify(ev [0x%08x] on window 0x%08x)\n", ev, ev->xany.window));
+ D_EVENTS(("sb_handle_motion_notify(ev [%8p] on window 0x%08x)\n", ev, ev->xany.window));
REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &scrollbar_event_data), 0);
if ((PrivateModes & PrivMode_mouse_report) && !(button_state.bypass_keystate))
diff --git a/src/timer.c b/src/timer.c
index 0ce70b2..399df9d 100644
--- a/src/timer.c
+++ b/src/timer.c
@@ -68,7 +68,7 @@ timer_add(unsigned long msec, timer_handler_t handler, void *data) {
timer->handler = handler;
timer->data = data;
timer->next = NULL;
- D_TIMER(("Added timer. Timer set to %lu/%lu with handler 0x%08x and data 0x%08x\n", timer->time.tv_sec, timer->time.tv_usec, timer->handler, timer->data));
+ D_TIMER(("Added timer. Timer set to %lu/%lu with handler %8p and data %8p\n", timer->time.tv_sec, timer->time.tv_usec, timer->handler, timer->data));
return ((timerhdl_t) timer);
}
diff --git a/utils/Esetroot.c b/utils/Esetroot.c
index c8acbcd..87f8e17 100644
--- a/utils/Esetroot.c
+++ b/utils/Esetroot.c
@@ -164,15 +164,15 @@ main(int argc, char *argv[])
if (debug) {
fprintf(stderr, "%s:%d: Chose screen %d\n", __FILE__, __LINE__, screen);
fprintf(stderr, "%s:%d: Root window is 0x%08x\n", __FILE__, __LINE__, (unsigned int) Xroot);
- fprintf(stderr, "%s:%d: Found screen information at 0x%08x\n", __FILE__, __LINE__, (unsigned int) scr);
+ fprintf(stderr, "%s:%d: Found screen information at %8p\n", __FILE__, __LINE__, scr);
}
params.flags = PARAMS_VISUALID;
params.visualid = (DefaultVisual(Xdisplay, screen))->visualid;
id = Imlib_init_with_params(Xdisplay, &params);
im = Imlib_load_image(id, fname);
if (debug) {
- fprintf(stderr, "%s:%d: The Imlib Data is at 0x%08x\n", __FILE__, __LINE__, (unsigned int) id);
- fprintf(stderr, "%s:%d: The Imlib Image is at 0x%08x\n", __FILE__, __LINE__, (unsigned int) im);
+ fprintf(stderr, "%s:%d: The Imlib Data is at %8p\n", __FILE__, __LINE__, id);
+ fprintf(stderr, "%s:%d: The Imlib Image is at %8p\n", __FILE__, __LINE__, im);
}
if (scale) {
w = scr->width;
@@ -209,7 +209,7 @@ main(int argc, char *argv[])
if (debug) {
fprintf(stderr, "%s:%d: Assigned width and height for rendering as %dx%d\n", __FILE__, __LINE__, w, h);
fprintf(stderr, "%s:%d: Created %dx%d+%d+%d pixmap 0x%08x\n", __FILE__, __LINE__, scr->width, scr->height, x, y, (unsigned int) p);
- fprintf(stderr, "%s:%d: Applied Graphics Context 0x%08x to pixmap.\n", __FILE__, __LINE__, (unsigned int) gc);
+ fprintf(stderr, "%s:%d: Applied Graphics Context %8p to pixmap.\n", __FILE__, __LINE__, gc);
}
Imlib_render(id, im, w, h);
temp_pmap = Imlib_move_image(id, im);