]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Clipboard logging improvement.
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 26 Mar 2021 03:21:17 +0000 (20:21 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 26 Mar 2021 03:21:17 +0000 (20:21 -0700)
Add a log instruction in CPClipboard_SetItem() to print the data size for
every format.

open-vm-tools/services/plugins/dndcp/dnd/dndClipboard.c

index 70eefca60c2bdc449e4bdb85ead0553f49ac712e..849c6699dc84dcd5ad12c17857315d0fe7ec487e 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2007-2019 VMware, Inc. All rights reserved.
+ * Copyright (C) 2007-2021 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -307,6 +307,9 @@ CPClipboard_SetItem(CPClipboard *clip,          // IN/OUT: the clipboard
       return FALSE;
    }
 
+   Log("%s: Set CPClipboard struct with data of size:%zu, format:%d.\n",
+       __FUNCTION__, size, (int)fmt);
+
    item = &clip->items[CPFormatToIndex(fmt)];
 
    if (clipitem) {