From 8b72c849151d901b01283bdf3aa7a97483ecad02 Mon Sep 17 00:00:00 2001
From: ballen4705 <ballen4705@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Fri, 9 Apr 2004 03:55:07 +0000
Subject: [PATCH] Print format error (64 bit quantity)

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@1661 4ea69e1a-61f1-4043-bf83-b5c94c648137
---
 sm5/smartd.c   | 6 +++---
 sm5/smartd.cpp | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/sm5/smartd.c b/sm5/smartd.c
index de5de0ea9..c6b8790f8 100644
--- a/sm5/smartd.c
+++ b/sm5/smartd.c
@@ -98,7 +98,7 @@ int getdomainname(char *, int); /* no declaration in header files! */
 extern const char *atacmdnames_c_cvsid, *atacmds_c_cvsid, *ataprint_c_cvsid, *escalade_c_cvsid, 
                   *knowndrives_c_cvsid, *os_XXXX_c_cvsid, *scsicmds_c_cvsid, *utility_c_cvsid;
 
-static const char *filenameandversion="$Id: smartd.c,v 1.310 2004/04/09 03:30:06 ballen4705 Exp $";
+static const char *filenameandversion="$Id: smartd.c,v 1.311 2004/04/09 03:55:07 ballen4705 Exp $";
 #ifdef NEED_SOLARIS_ATA_CODE
 extern const char *os_solaris_ata_s_cvsid;
 #endif
@@ -109,7 +109,7 @@ extern const char *syslog_win32_c_cvsid;
 extern const char *int64_vc6_c_cvsid;
 #endif
 #endif
-const char *smartd_c_cvsid="$Id: smartd.c,v 1.310 2004/04/09 03:30:06 ballen4705 Exp $" 
+const char *smartd_c_cvsid="$Id: smartd.c,v 1.311 2004/04/09 03:55:07 ballen4705 Exp $" 
 ATACMDS_H_CVSID ATAPRINT_H_CVSID CONFIG_H_CVSID EXTERN_H_CVSID INT64_H_CVSID
 KNOWNDRIVES_H_CVSID SCSICMDS_H_CVSID SMARTD_H_CVSID
 #ifdef SYSLOG_H_CVSID
@@ -445,7 +445,7 @@ void Goodbye(void){
 
   // useful for debugging -- have we managed memory correctly?
   if (debugmode || (bytes && exitstatus!=EXIT_NOMEM))
-    PrintOut(LOG_INFO, "Memory still allocated for devices at exit is %lld bytes.\n", bytes);
+    PrintOut(LOG_INFO, "Memory still allocated for devices at exit is %"PRId64" bytes.\n", bytes);
 
   // if we are exiting because of a code bug, tell user
   if (exitstatus==EXIT_BADCODE || (bytes && exitstatus!=EXIT_NOMEM))
diff --git a/sm5/smartd.cpp b/sm5/smartd.cpp
index 02d18d0cc..e8ad5f87d 100644
--- a/sm5/smartd.cpp
+++ b/sm5/smartd.cpp
@@ -98,7 +98,7 @@ int getdomainname(char *, int); /* no declaration in header files! */
 extern const char *atacmdnames_c_cvsid, *atacmds_c_cvsid, *ataprint_c_cvsid, *escalade_c_cvsid, 
                   *knowndrives_c_cvsid, *os_XXXX_c_cvsid, *scsicmds_c_cvsid, *utility_c_cvsid;
 
-static const char *filenameandversion="$Id: smartd.cpp,v 1.310 2004/04/09 03:30:06 ballen4705 Exp $";
+static const char *filenameandversion="$Id: smartd.cpp,v 1.311 2004/04/09 03:55:07 ballen4705 Exp $";
 #ifdef NEED_SOLARIS_ATA_CODE
 extern const char *os_solaris_ata_s_cvsid;
 #endif
@@ -109,7 +109,7 @@ extern const char *syslog_win32_c_cvsid;
 extern const char *int64_vc6_c_cvsid;
 #endif
 #endif
-const char *smartd_c_cvsid="$Id: smartd.cpp,v 1.310 2004/04/09 03:30:06 ballen4705 Exp $" 
+const char *smartd_c_cvsid="$Id: smartd.cpp,v 1.311 2004/04/09 03:55:07 ballen4705 Exp $" 
 ATACMDS_H_CVSID ATAPRINT_H_CVSID CONFIG_H_CVSID EXTERN_H_CVSID INT64_H_CVSID
 KNOWNDRIVES_H_CVSID SCSICMDS_H_CVSID SMARTD_H_CVSID
 #ifdef SYSLOG_H_CVSID
@@ -445,7 +445,7 @@ void Goodbye(void){
 
   // useful for debugging -- have we managed memory correctly?
   if (debugmode || (bytes && exitstatus!=EXIT_NOMEM))
-    PrintOut(LOG_INFO, "Memory still allocated for devices at exit is %lld bytes.\n", bytes);
+    PrintOut(LOG_INFO, "Memory still allocated for devices at exit is %"PRId64" bytes.\n", bytes);
 
   // if we are exiting because of a code bug, tell user
   if (exitstatus==EXIT_BADCODE || (bytes && exitstatus!=EXIT_NOMEM))
-- 
GitLab