Xin Zhang / azure-iot-c-sdk-f767zi

Dependents:   samplemqtt

uamqp/deps/umock-c/src/umock_log.c

Committer:
XinZhangMS
Date:
2018-08-23
Revision:
0:f7f1f0d76dd6

File content as of revision 0:f7f1f0d76dd6:


// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

#include <stdio.h>
#include <stdarg.h>

#include "umock_log.h"
#include "umock_c_internal.h"

void UMOCK_LOG(const char* format, ...)
{
    va_list params;
    va_start(params, format);
    (void)vprintf(format, params); 
    va_end(params);
    printf("\r\n");
    umock_c_indicate_error(UMOCK_C_ERROR);
}