LONGLONG printing in debugger?

Hi all,

This may be ridiculously easy, but can anyone tell me the easiest way to
print out a LONGLONG or ULONGLONG with DbgPrint? I need to debug some
LONGLONG offsets/sizes for files, and can’t find the proper format
anywhere…

Thanks,
Matt

Use I64 as you would h or l as a size prefix.

Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

----- Original Message -----
From: “Matthew N. White”
To: “Windows File Systems Devs Interest List”
Sent: Tuesday, July 05, 2005 2:30 PM
Subject: [ntfsd] LONGLONG printing in debugger?

> Hi all,
>
> This may be ridiculously easy, but can anyone tell me the easiest way to
> print out a LONGLONG or ULONGLONG with DbgPrint? I need to debug some
> LONGLONG offsets/sizes for files, and can’t find the proper format
> anywhere…
>
> Thanks,
> Matt
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@acm.org
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

%I64d
or
%I64x

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Matthew N. White”
To: “Windows File Systems Devs Interest List”
Sent: Tuesday, July 05, 2005 10:30 PM
Subject: [ntfsd] LONGLONG printing in debugger?

> Hi all,
>
> This may be ridiculously easy, but can anyone tell me the easiest way to
> print out a LONGLONG or ULONGLONG with DbgPrint? I need to debug some
> LONGLONG offsets/sizes for files, and can’t find the proper format
> anywhere…
>
> Thanks,
> Matt
>
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

Easier than ULONG_PTR as decimal :slight_smile:

“Matthew N. White” wrote in message news:xxxxx@ntfsd…
> Hi all,
>
> This may be ridiculously easy, but can anyone tell me the easiest way to
> print out a LONGLONG or ULONGLONG with DbgPrint? I need to debug some
> LONGLONG offsets/sizes for files, and can’t find the proper format
> anywhere…
>
> Thanks,
> Matt
>
>
>