VirtualBox

Changeset 62043 in vbox for trunk/src


Ignore:
Timestamp:
Jul 6, 2016 11:02:33 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108510
Message:

Fix printf signed/unsigned mismatch. This effectively reverts part of
the previous, which must have been an error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/snippets/time-1.c

    r58153 r62043  
    7272        {
    7373#ifdef USE_CLOCK_MONOTONIC
    74             printf("tv_nsec in the past: %ld.%09u < %ld.%09u - %d nsec\n",
     74            printf("tv_nsec in the past: %ld.%09u < %ld.%09u - %u nsec\n",
    7575                   (long)pCur->tv_sec,  (unsigned)pCur->tv_nsec,
    7676                   (long)pPrev->tv_sec, (unsigned)pPrev->tv_nsec,
    7777                   (unsigned)pPrev->tv_nsec - (unsigned)pCur->tv_nsec);
    7878#else
    79             printf("tv_usec in the past: %ld.%06u < %ld.%06u - %d usec\n",
     79            printf("tv_usec in the past: %ld.%06u < %ld.%06u - %u usec\n",
    8080                   (long)pCur->tv_sec,  (unsigned)pCur->tv_usec,
    8181                   (long)pPrev->tv_sec, (unsigned)pPrev->tv_usec,
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette