Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4823554
xmount_log.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
2 KB
Referenced Files
None
Subscribers
None
xmount_log.c
View Options
/*******************************************************************************
* xmount Copyright (c) 2008,2009 by Gillen Daniel <gillen.dan@pinguin.lu> *
* *
* xmount is a small tool to "fuse mount" various image formats as dd or vdi *
* files and enable virtual write access. *
* *
* This program is free software: you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the Free *
* Software Foundation, either version 3 of the License, or (at your option) *
* any later version. *
* *
* This program is distributed in the hope that it will be useful, but WITHOUT *
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for *
* more details. *
* *
* You should have received a copy of the GNU General Public License along with *
* this program. If not, see <http://www.gnu.org/licenses/>. *
*******************************************************************************/
#include "xmount_log.h"
#include <stdio.h>
/*
* xmlog_message
*/
void xmlog_message(char *pMessageType,
char *pCallingFunction,
int line,
char *pMessage,
...)
{
va_list VaList;
// Print message "header"
printf("%s: %s.%s@%u : ",pMessageType,pCallingFunction,PACKAGE_VERSION,line);
// Print message with variable parameters
va_start(VaList,pMessage);
vprintf(pMessage,VaList);
va_end(VaList);
}
/*
* xmlog_warn
*/
void xmlog_warn(char *pMessage,...) {
va_list VaList;
// Print message "header"
printf("WARNING: ");
// Print message with variable parameters
va_start(VaList,pMessage);
vprintf(pMessage,VaList);
va_end(VaList);
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, May 11, 6:11 AM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1247626
Default Alt Text
xmount_log.c (2 KB)
Attached To
Mode
rXMOUNT xmount
Attached
Detach File
Event Timeline
Log In to Comment