Commit e546bd35 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Fixed format strings in BUG macro.

parent 51399cb5
/*
* $Id: person.c,v 0.25 1993/10/16 17:49:10 ceder Exp $
* $Id: person.c,v 0.26 1994/01/12 01:36:36 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -28,7 +28,7 @@
* All atomic calls that deals with persons.
*/
static char *rcsid = "$Id: person.c,v 0.25 1993/10/16 17:49:10 ceder Exp $";
static char *rcsid = "$Id: person.c,v 0.26 1994/01/12 01:36:36 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -467,7 +467,7 @@ mark_text(Text_no text_no, /* Will fail if the user is not */
return FAILURE;
}
BUG(("Person %d markerar text %d med typ %d\n",
BUG(("Person %d markerar text %lu med typ %d\n",
ACTPERS, text_no, mark_type));
return do_mark_text(ACTPERS, ACT_P, text_no, text_s, mark_type);
......@@ -480,7 +480,7 @@ unmark_text(Text_no text_no)
BUGDECL;
CHK_LOGIN(FAILURE);
BUG(("Person %d avmarkerar text %d\n", ACTPERS, text_no));
BUG(("Person %d avmarkerar text %lu\n", ACTPERS, text_no));
return do_unmark_text(ACTPERS, ACT_P, text_no, text_s);
}
......
/*
* $Id: prot-a.c,v 0.23 1993/10/18 12:30:15 ceder Exp $
* $Id: prot-a.c,v 0.24 1994/01/12 01:37:27 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -26,7 +26,7 @@
* Protocol A.
*/
static char *rcsid = "$Id: prot-a.c,v 0.23 1993/10/18 12:30:15 ceder Exp $";
static char *rcsid = "$Id: prot-a.c,v 0.24 1994/01/12 01:37:27 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -74,8 +74,8 @@ prot_a_reply(Connection *client,
switch ( fnc_defs[ client->function ].result )
{
case rt_number:
mux_printf(client, " %ld", (unsigned long)res->number);
BUG(("=%d\n", res->number));
mux_printf(client, " %lu", (unsigned long)res->number);
BUG(("=%lu\n", res->number));
break;
case rt_success:
......@@ -109,7 +109,7 @@ prot_a_reply(Connection *client,
case rt_string:
prot_a_output_string(client, res->string);
BUG(("={%dH", res->string.len));
BUG(("={%luH", res->string.len));
BUGSTR(res->string);
BUG(("}\n"));
break;
......@@ -167,17 +167,17 @@ prot_a_reply(Connection *client,
case rt_time_date:
prot_a_output_time (client, res->time_date);
BUG(("=(time_t)%d\n", res->time_date));
BUG(("=(time_t)%lu\n", (unsigned long)res->time_date));
break;
case rt_session_no:
prot_a_output_session_no (client, res->session_no);
BUG(("=(Session_no)%d\n", res->session_no));
BUG(("=(Session_no)%lu\n", res->session_no));
break;
case rt_text_no:
prot_a_output_text_no (client, res->text_no);
BUG(("=(Text_no)%d\n", res->text_no));
BUG(("=(Text_no)%lu\n", res->text_no));
break;
case rt_who_info_ident_list:
......@@ -361,7 +361,7 @@ prot_a_parse_packet(Connection *client)
client->username_valid = TRUE;
mux_printf(client, "LysKOM\n");
mux_flush(client);
BUG(("[Client %d is logged on]\n", client->session_no));
BUG(("[Client %lu is logged on]\n", client->session_no));
}
switch(client->parse_pos)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment