From 5786bf53a9fc2fefed641a3009e6c284cdeaff1a Mon Sep 17 00:00:00 2001
From: Kevin Bracey <kbracey@gitlab.riscosopen.org>
Date: Tue, 3 Oct 2000 08:18:22 +0000
Subject: [PATCH] printf specifier %#x corrected to prepend "0x" instead of
 "0X".

Version 5.17. Tagged as 'RISC_OSLib-5_17'
---
 VersionASM | 14 +++++++-------
 VersionNum | 20 ++++++++++----------
 c/printf   |  2 +-
 3 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/VersionASM b/VersionASM
index 7fd3bbc..884ffac 100644
--- a/VersionASM
+++ b/VersionASM
@@ -9,12 +9,12 @@
                         GBLS    Module_ApplicationDate2
                         GBLS    Module_ApplicationDate4
                         GBLS    Module_HelpVersion
-Module_MajorVersion     SETS    "5.16"
-Module_Version          SETA    516
+Module_MajorVersion     SETS    "5.17"
+Module_Version          SETA    517
 Module_MinorVersion     SETS    ""
-Module_Date             SETS    "02 Oct 2000"
-Module_ApplicationDate2 SETS    "02-Oct-00"
-Module_ApplicationDate4 SETS    "02-Oct-2000"
-Module_FullVersion      SETS    "5.16"
-Module_HelpVersion      SETS    "5.16 (02 Oct 2000)"
+Module_Date             SETS    "03 Oct 2000"
+Module_ApplicationDate2 SETS    "03-Oct-00"
+Module_ApplicationDate4 SETS    "03-Oct-2000"
+Module_FullVersion      SETS    "5.17"
+Module_HelpVersion      SETS    "5.17 (03 Oct 2000)"
                         END
diff --git a/VersionNum b/VersionNum
index 8873974..4c08cdd 100644
--- a/VersionNum
+++ b/VersionNum
@@ -1,19 +1,19 @@
-/* (5.16)
+/* (5.17)
  *
  * This file is automatically maintained by srccommit, do not edit manually.
  *
  */
-#define Module_MajorVersion_CMHG        5.16
+#define Module_MajorVersion_CMHG        5.17
 #define Module_MinorVersion_CMHG        
-#define Module_Date_CMHG                02 Oct 2000
+#define Module_Date_CMHG                03 Oct 2000
 
-#define Module_MajorVersion             "5.16"
-#define Module_Version                  516
+#define Module_MajorVersion             "5.17"
+#define Module_Version                  517
 #define Module_MinorVersion             ""
-#define Module_Date                     "02 Oct 2000"
+#define Module_Date                     "03 Oct 2000"
 
-#define Module_ApplicationDate2         "02-Oct-00"
-#define Module_ApplicationDate4         "02-Oct-2000"
+#define Module_ApplicationDate2         "03-Oct-00"
+#define Module_ApplicationDate4         "03-Oct-2000"
 
-#define Module_FullVersion              "5.16"
-#define Module_HelpVersion              "5.16 (02 Oct 2000)"
+#define Module_FullVersion              "5.17"
+#define Module_HelpVersion              "5.17 (03 Oct 2000)"
diff --git a/c/printf b/c/printf
index 048393d..9290d80 100644
--- a/c/printf
+++ b/c/printf
@@ -372,7 +372,7 @@ int __vfprintf(FILE *p, const char *fmt, va_list args,
     case 'x':   v = va_arg(args, int);
                 if (flags & _SHORTSPEC) v = (unsigned short)v;
                 hextab = "0123456789abcdef";
-                prefix = ((flags&_VARIANT) != 0 && v != 0)? "0X" : "";
+                prefix = ((flags&_VARIANT) != 0 && v != 0)? "0x" : "";
                 if (flags & _PRECGIVEN) flags &= ~_PADZERO;
                 break;
 
-- 
GitLab