Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78048 - trunk/libs/context/src
From: oliver.kowalke_at_[hidden]
Date: 2012-04-17 13:17:39


Author: olli
Date: 2012-04-17 13:17:38 EDT (Tue, 17 Apr 2012)
New Revision: 78048
URL: http://svn.boost.org/trac/boost/changeset/78048

Log:
context: correct foramt flag in seh.cpp
Text files modified:
   trunk/libs/context/src/seh.cpp | 7 ++++---
   1 files changed, 4 insertions(+), 3 deletions(-)

Modified: trunk/libs/context/src/seh.cpp
==============================================================================
--- trunk/libs/context/src/seh.cpp (original)
+++ trunk/libs/context/src/seh.cpp 2012-04-17 13:17:38 EDT (Tue, 17 Apr 2012)
@@ -11,6 +11,7 @@
 #include <stddef.h>
 #include <stdio.h>
 
+#include <excpt.h>
 #include <windows.h>
 #include <winnt.h>
 
@@ -32,7 +33,7 @@
     {
         const char * accessType = ( info[0]) ? "writing" : "reading";
         const ULONG_PTR address = info[1];
- SNPRINTF( description, len, "Access violation %s 0x%08X", accessType, address);
+ SNPRINTF( description, len, "Access violation %s 0x%08lX", accessType, address);
         return description;
     }
     case EXCEPTION_DATATYPE_MISALIGNMENT: return "Datatype misalignment";
@@ -58,7 +59,7 @@
     case EXCEPTION_INVALID_HANDLE: return "Invalid handle";
     }
 
- SNPRINTF( description, len, "Unknown (0x%08X)", code);
+ SNPRINTF( description, len, "Unknown (0x%08lX)", code);
     return description;
 }
 
@@ -70,7 +71,7 @@
 {
     char description[255];
 
- fprintf( stderr, "exception: %s (%08X)\n",
+ fprintf( stderr, "exception: %s (%08lX)\n",
         exception_description( record, description, sizeof( description) ),
         record->ExceptionCode);
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk