Changeset f278ff3


Ignore:
Timestamp:
Aug 20, 2009, 10:54:32 PM (15 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
2646676
Parents:
0f15f12
git-author:
Anders Kaseorg <andersk@mit.edu> (08/20/09 21:49:07)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/20/09 22:54:32)
Message:
aim.c, perlconfig.c: Fix format string bugs.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • aim.c

    r362c932 rf278ff3  
    798798  va_end(ap);
    799799 
    800   owl_function_debugmsg("faimtest_icbmparaminfo: ICBM Parameters: maxchannel = %d, default flags = 0x%08lx, max msg len = %d, max sender evil = %f, max reciever evil = %f, min msg interval = %ld",
     800  owl_function_debugmsg("faimtest_icbmparaminfo: ICBM Parameters: maxchannel = %d, default flags = 0x%08x, max msg len = %d, max sender evil = %f, max reciever evil = %f, min msg interval = %u",
    801801                       params->maxchan, params->flags, params->maxmsglen, ((float)params->maxsenderwarn)/10.0, ((float)params->maxrecverwarn)/10.0, params->minmsginterval);
    802802     
     
    12741274  if (args->icbmflags & AIM_IMFLAGS_HASICON) {
    12751275    /* aim_send_im(sess, userinfo->sn, AIM_IMFLAGS_BUDDYREQ, "You have an icon"); */
    1276     owl_function_debugmsg("faimtest_parse_incoming_im_chan1: icbm: their icon: iconstamp = %ld, iconlen = 0x%08lx, iconsum = 0x%04x\n", args->iconstamp, args->iconlen, args->iconsum);
     1276    owl_function_debugmsg("faimtest_parse_incoming_im_chan1: icbm: their icon: iconstamp = %ld, iconlen = 0x%08x, iconsum = 0x%04x\n", args->iconstamp, args->iconlen, args->iconsum);
    12771277  }
    12781278
     
    13291329    /* aim_chat_join(sess, conn, args->info.chat.roominfo.exchange, args->info.chat.roominfo.name, args->info.chat.roominfo.instance); */
    13301330  } else if (args->reqclass == AIM_CAPS_BUDDYICON) {
    1331     owl_function_debugmsg("faimtest_parse_incoming_im_chan2: Buddy Icon from %s, length = %lu\n",
     1331    owl_function_debugmsg("faimtest_parse_incoming_im_chan2: Buddy Icon from %s, length = %u\n",
    13321332                          userinfo->sn, args->info.icon.length);
    13331333  } else if (args->reqclass == AIM_CAPS_ICQRTF) {
    1334     owl_function_debugmsg("faimtest_parse_incoming_im_chan2: RTF message from %s: (fgcolor = 0x%08lx, bgcolor = 0x%08lx) %s\n",
     1334    owl_function_debugmsg("faimtest_parse_incoming_im_chan2: RTF message from %s: (fgcolor = 0x%08x, bgcolor = 0x%08x) %s\n",
    13351335                          userinfo->sn, args->info.rtfmsg.fgcolor, args->info.rtfmsg.bgcolor, args->info.rtfmsg.rtfmsg);
    13361336  } else {
     
    16011601  va_end(ap);
    16021602 
    1603   owl_function_debugmsg("faimtest_parse_ratechange: rate %s (rate class 0x%04x): curavg = %ld, maxavg = %ld, alert at %ld, clear warning at %ld, limit at %ld, disconnect at %ld (window size = %ld)",
     1603  owl_function_debugmsg("faimtest_parse_ratechange: rate %s (rate class 0x%04x): curavg = %u, maxavg = %u, alert at %u, clear warning at %u, limit at %u, disconnect at %u (window size = %u)",
    16041604                        (code < 5)?codes[code]:"invalid",
    16051605                        rateclass,
     
    17581758  va_end(ap);
    17591759 
    1760   owl_function_debugmsg("ssiddata: got SSI data (0x%02x, %d items, %ld)", fmtver, itemcount, stamp);
     1760  owl_function_debugmsg("ssiddata: got SSI data (0x%02x, %d items, %u)", fmtver, itemcount, stamp);
    17611761  /*
    17621762  for (curitem=sess->ssi.local; curitem; curitem=curitem->next) {
     
    17891789 
    17901790  if (msg->type == 0x0001) {
    1791     owl_function_debugmsg("offlinemsg: from %ld at %d/%d/%d %02d:%02d : %s", msg->sender, msg->year, msg->month, msg->day, msg->hour, msg->minute, msg->msg);
     1791    owl_function_debugmsg("offlinemsg: from %u at %d/%d/%d %02d:%02d : %s", msg->sender, msg->year, msg->month, msg->day, msg->hour, msg->minute, msg->msg);
    17921792  } else {
    17931793    owl_function_debugmsg("unknown offline message type 0x%04x", msg->type);
  • perlconfig.c

    r5ebc202 rf278ff3  
    270270
    271271  if(count != 1) {
    272     fprintf(stderr, "perl returned wrong count %d\n", count);
     272    fprintf(stderr, "perl returned wrong count %u\n", count);
    273273    abort();
    274274  }
Note: See TracChangeset for help on using the changeset viewer.