public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin/main] Cygwin: /dev/disk/by-uuid: Fix NTFS serial number print format
@ 2023-11-20 20:01 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2023-11-20 20:01 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=d36b4f3f069881b2613b2754d6492d596c9e6ab9
commit d36b4f3f069881b2613b2754d6492d596c9e6ab9
Author: Christian Franke <christian.franke@t-online.de>
AuthorDate: Mon Nov 20 15:40:42 2023 +0100
Commit: Corinna Vinschen <corinna@vinschen.de>
CommitDate: Mon Nov 20 20:59:12 2023 +0100
Cygwin: /dev/disk/by-uuid: Fix NTFS serial number print format
Signed-off-by: Christian Franke <christian.franke@t-online.de>
Diff:
---
winsup/cygwin/fhandler/dev_disk.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygwin/fhandler/dev_disk.cc b/winsup/cygwin/fhandler/dev_disk.cc
index 016b4c7bc2ad..c5d72816f0c5 100644
--- a/winsup/cygwin/fhandler/dev_disk.cc
+++ b/winsup/cygwin/fhandler/dev_disk.cc
@@ -308,7 +308,7 @@ partition_to_label_or_uuid(bool uuid, const UNICODE_STRING *drive_uname,
&& nvdb->VolumeSerialNumber.QuadPart)
{
/* Print without any separator as on Linux. */
- __small_sprintf (name, "%16X", nvdb->VolumeSerialNumber.QuadPart);
+ __small_sprintf (name, "%016X", nvdb->VolumeSerialNumber.QuadPart);
NtClose(volhdl);
return true;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-20 20:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-20 20:01 [newlib-cygwin/main] Cygwin: /dev/disk/by-uuid: Fix NTFS serial number print format Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).