Skip to content

Commit

Permalink
Merge pull request #4455 from pdbain-ibm/master
Browse files Browse the repository at this point in the history
Clean up jio_snprintf and jio_vfprintf
  • Loading branch information
DanHeidinga committed Jan 25, 2019
2 parents ea51e44 + 0971f22 commit 3e61a26
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions runtime/j9vm/jvm.c
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2002, 2018 IBM Corp. and others
* Copyright (c) 2002, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -1246,11 +1246,7 @@ jio_snprintf(char * str, int n, const char * format, ...)
Trc_SC_snprintf_Entry();

va_start(args, format);
#if defined(WIN32) && !defined(WIN32_IBMC)
result = _vsnprintf( str, n, format, args );
#else
result = vsprintf( str, format, args );
#endif
result = vsnprintf( str, n, format, args );
va_end(args);

Trc_SC_snprintf_Exit(result);
Expand Down Expand Up @@ -1283,11 +1279,7 @@ jio_vsnprintf(char * str, int n, const char * format, va_list args)

Trc_SC_vsnprintf_Entry(str, n, format);

#if defined(WIN32) && !defined(WIN32_IBMC)
result = _vsnprintf( str, n, format, args );
#else
result = vsprintf( str, format, args );
#endif
result = vsnprintf( str, n, format, args );

Trc_SC_vsnprintf_Exit(result);

Expand Down

0 comments on commit 3e61a26

Please sign in to comment.