Commit af52d870 authored by Mike Hommey's avatar Mike Hommey
Browse files

Bug 1766561 - Use proper formatting directives in various places....

Bug 1766561 - Use proper formatting directives in various places. r=gfx-reviewers,nika,necko-reviewers,mhowell,rkraesig,bytesized,kershaw

Differential Revision: https://phabricator.services.mozilla.com/D144920
parent 2d6c8fdb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -276,7 +276,7 @@ bool DeviceManagerDx::CreateCompositorDevices() {

  if (int32_t sleepSec =
          StaticPrefs::gfx_direct3d11_sleep_on_create_device_AtStartup()) {
    printf_stderr("Attach to PID: %d\n", GetCurrentProcessId());
    printf_stderr("Attach to PID: %lu\n", GetCurrentProcessId());
    Sleep(sleepSec * 1000);
  }

+1 −1
Original line number Diff line number Diff line
@@ -570,7 +570,7 @@ nsresult gfxDWriteFontEntry::ReadCMAP(FontInfoData* aFontInfoData) {
    }
  }

  LOG_FONTLIST(("(fontlist-cmap) name: %s, size: %d hash: %8.8x%s\n",
  LOG_FONTLIST(("(fontlist-cmap) name: %s, size: %zu hash: %8.8x%s\n",
                mName.get(), charmap->SizeOfIncludingThis(moz_malloc_size_of),
                charmap->mHash, mCharacterMap == charmap ? " new" : ""));
  if (LOG_CMAPDATA_ENABLED()) {
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ ProxyStream::ProxyStream(REFIID aIID, const BYTE* aInitBuf,
#if defined(ACCESSIBILITY)
    auto curActCtx = ActivationContext::GetCurrent();
    if (curActCtx.isOk()) {
      strActCtx.AppendPrintf("0x%p", curActCtx.unwrap());
      strActCtx.AppendPrintf("0x%" PRIxPTR, curActCtx.unwrap());
    } else {
      strActCtx.AppendPrintf("HRESULT 0x%08lX", curActCtx.unwrapErr());
    }
+2 −1
Original line number Diff line number Diff line
@@ -108,7 +108,8 @@ class ActivityMonitorSecret final {

      // for all other cases, we just send back fd://<value>
      default: {
        mLocation.AppendPrintf("fd://%d", PR_FileDesc2NativeHandle(mFd));
        mLocation.AppendLiteral("fd://");
        mLocation.AppendInt(PR_FileDesc2NativeHandle(mFd));
      }
    }  // end switch
  }
+10 −4
Original line number Diff line number Diff line
@@ -2123,10 +2123,16 @@ void DataChannelConnection::HandleSendFailedEvent(
  if (ssfe->ssfe_flags & ~(SCTP_DATA_SENT | SCTP_DATA_UNSENT)) {
    DC_DEBUG(("(flags = %x) ", ssfe->ssfe_flags));
  }
  DC_DEBUG(
      ("message with PPID = %u, SID = %d, flags: 0x%04x due to error = 0x%08x",
#ifdef XP_WIN
#  define PRIPPID "lu"
#else
#  define PRIPPID "u"
#endif
  DC_DEBUG(("message with PPID = %" PRIPPID
            ", SID = %d, flags: 0x%04x due to error = 0x%08x",
            ntohl(ssfe->ssfe_info.snd_ppid), ssfe->ssfe_info.snd_sid,
            ssfe->ssfe_info.snd_flags, ssfe->ssfe_error));
#undef PRIPPID
  n = ssfe->ssfe_length - sizeof(struct sctp_send_failed_event);
  for (i = 0; i < n; ++i) {
    DC_DEBUG((" 0x%02x", ssfe->ssfe_data[i]));
Loading