~n-muench/ubuntu/precise/open-vm-tools/open-vm-tools.raring-precise.backport

« back to all changes in this revision

Viewing changes to lib/include/log.h

  • Committer: Package Import Robot
  • Author(s): Nate Muench
  • Date: 2012-01-23 16:09:45 UTC
  • mfrom: (1.4.6) (2.4.26 sid)
  • Revision ID: package-import@ubuntu.com-20120123160945-b6s0r1vkcovucpf3
Tags: 2011.12.20-562307-0ubuntu1
* Merge latest upstream git tag. Fixes building on Precise
  (LP: #898289, LP: #905612)

* Items merged from Debian unstable:
  - debian/control:
    + open-vm-tools recommends open-vm-dkms. (LP: #598933)
    + open-vm-tools now suggests open-vm-toolbox. (LP: #604998)
  (From 2011.08.21-471295-1 release)
  - Updating maintainer and uploaders fields.
  - Removing vcs fields.
  - Removing references to Daniel's old email address.
  - Updating years in copyright file.
  - Updating to standards version 3.9.2.
  - Updating to debhelper version 8.
  - Switching to source format 3.0 (quilt).
  - Removing manual chrpath setting.
  - Removing exclusion from plugins from debhelper shlibs.
  - Rediffing kvers.patch.
  (From 2011.09.23-491607-1 release)
  - Marking binary architecture-dependend packages as linux and kfreebsd
  only.
  - Removing liburiparser-dev from build-depends as upstream dropped
  unity support.
  - Building with libproc-dev on amd64 again.
  - Dropping disabling of dnet support.
  (From 2011.09.23-491607-2 release)
  - Adding doxygen to build-depends for api documentation.
  - Adding libcunit1-dev to build-depends for test suites.
  - Minimizing rules file.
  - Adding open-vm-tools-dev package, containing only the api
    documentation for now.
  (From 2011.09.23-491607-3 release)
  - Sorting overrides in rules alphabetically.
  - Compacting copyright file.
  - Adding udev rule to set timeout for vmware scsi devices
  (From 2011.12.20-562307-1 release)
  - Adding patch to correct typo in upstreams dkms configuration

* Remaining Changes:
  - Remove Stable part of version numbering.
  - debian folder:
    + Re-added open-vm-dkms.postinst & open-vm-dkms.prerm.
      * Allows dkms modules to compile upon installation.
  - debian/control:
    + Re-add open-vm-source and make into a transitional package
      for open-vm-toolbox.
    + Return dependancies that were moved to open-vm-tools back to
      open-vm-toolbox.
  - debian/rules and debian/open-vm-toolbox.lintian-overrides:
    + Make vmware-user-suid-wrapper suid-root
  - debian/rules:
    + Added CFLAGS field with -Wno-deprecated-declarations
      * Will suppress issues with glib 2.31 or later.
    + Add line to copy vmware-xdg-detect-de into place.
    + Install vmware-user.desktop through toolbox package.
  - debian/open-vm-tools.init:
    + Re-add 'modprobe [-r] vmblock'.
    + Add 'modprobe [-r] vmxnet'.
      * Incase it's not loaded during boot.
    + Remove and re-add pcnet32 module
      * Will be done before (remove) and after (readd) vmxnet module
        is added.
      * If vmxnet doesn't exist (aka modules fail to build), pcnet32 can be
        still used for network connectivity.
      * Workaround until a better fix can be done.
  - Re-add gnome-session to debian/local/xautostart.conf
  - Manpages removed (from debian/manpages):
    + vmmemctl.9
    + vmxnet3.9
    + Remove references to manpages that have been removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
#define VMW_LOG_DEBUG_09 (VMW_LOG_DEBUG_00 +  9)
55
55
#define VMW_LOG_DEBUG_10 (VMW_LOG_DEBUG_00 + 10) // lowest priority; least noisy
56
56
 
57
 
#define VMW_LOG_NO_ROUTE 0x80000000  // Force routing to Log
 
57
#define VMW_LOG_NO_ROUTE        0x80000000  // Force routing to Log
 
58
#define VMW_LOG_NO_ROUTE_STDERR 0x40000000  // Allow stderr on suitable msgs
58
59
 
59
60
void LogV(uint32 routing,
60
61
          const char *fmt,
155
156
/* Forward decl */
156
157
struct MsgList;
157
158
 
158
 
typedef void (LogOutputFunc)(int level,
159
 
                             const char *fmt,
160
 
                             va_list args);
 
159
typedef void (LogOverrideFunc)(int level,
 
160
                               const char *msg);
161
161
 
162
162
 
163
163
typedef enum {
222
222
                       Bool perLineThreadNames);
223
223
 
224
224
void Log_Exit(void);
225
 
void Log_SetConfigDir(const char *configDir);
226
225
 
227
226
Bool Log_Outputting(void);
228
227
const char *Log_GetFileName(void);
231
230
Bool Log_RemoveFile(Bool alwaysRemove);
232
231
void Log_DisableThrottling(void);
233
232
void Log_EnableStderrWarnings(Bool stderrOutput);
234
 
void Log_BackupOldFiles(const char *fileName, Bool noRename);
235
 
Bool Log_CopyFile(const char *fileName, struct MsgList **errs);
 
233
void Log_BackupOldFiles(const char *fileName,
 
234
                        Bool noRename);
 
235
Bool Log_CopyFile(const char *fileName,
 
236
                  struct MsgList **errs);
236
237
uint32 Log_MaxLineLength(void);
237
238
 
238
 
void Log_RegisterOutputFunction(LogOutputFunc *func);
 
239
void Log_OverrideFunction(LogOverrideFunc *func);
239
240
 
240
241
Bool Log_SetOutput(const char *fileName,
241
242
                   const char *config,
248
249
                          char *buf,
249
250
                          size_t max);
250
251
 
 
252
typedef Bool (LogOwnerFunc)(void *userData,
 
253
                            const char *fileName);
 
254
 
 
255
Bool Log_BoundNumFiles(LogOwnerFunc *func,
 
256
                       void *userData);
251
257
 
252
258
/* Logging that uses the custom guest throttling configuration. */
253
259
void GuestLog_Init(void);
254
 
void GuestLog_Log(const char *fmt, ...) PRINTF_DECL(1, 2);
 
260
void GuestLog_Log(const char *fmt,
 
261
                  ...) PRINTF_DECL(1, 2);
255
262
 
256
263
 
257
264
/*
258
 
 * How many old log files to keep around.
 
265
 * Default values for the log are obtained via Log_GetStaticDefaults.
259
266
 *
260
 
 * ESX needs more old log files for bug fixing (and vmotion).
 
267
 * These values represent commonly used override values.
261
268
 */
262
269
 
263
270
#if defined(VMX86_SERVER)
264
 
#define LOG_DEFAULT_KEEPOLD 6
265
 
#else
266
 
#define LOG_DEFAULT_KEEPOLD 3
267
 
#endif
268
 
 
269
 
#define LOG_NO_BPS_LIMIT               0xFFFFFFFF
270
 
#define LOG_NO_ROTATION_SIZE           0
271
 
#define LOG_NO_THROTTLE_THRESHOLD      0
272
 
 
273
 
#if defined(VMX86_RELEASE)
274
 
#define LOG_DEFAULT_THROTTLE_BPS       1000
275
 
#else
276
 
#define LOG_DEFAULT_THROTTLE_BPS       LOG_NO_BPS_LIMIT
277
 
#endif
278
 
 
279
 
#define LOG_DEFAULT_THROTTLE_THRESHOLD 1000000
 
271
#define LOG_KEEPOLD 6  // Old log files to keep around; ESX value
 
272
#else
 
273
#define LOG_KEEPOLD 3  // Old log files to keep around; non-ESX value
 
274
#endif
 
275
 
 
276
#define LOG_NO_KEEPOLD                 0  // Keep no old log files
 
277
#define LOG_NO_ROTATION_SIZE           0  // Do not rotate based on file size
 
278
#define LOG_NO_THROTTLE_THRESHOLD      0  // No threshold before throttling
 
279
#define LOG_NO_BPS_LIMIT               0xFFFFFFFF  // unlimited input rate
280
280
 
281
281
 
282
282
/*