From: John Wolfe Date: Fri, 26 Mar 2021 03:21:17 +0000 (-0700) Subject: Clipboard logging improvement. X-Git-Tag: stable-11.3.0~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e980e3adeed221af11edc3ef66dcb382474642c;p=thirdparty%2Fopen-vm-tools.git Clipboard logging improvement. Add a log instruction in CPClipboard_SetItem() to print the data size for every format. --- diff --git a/open-vm-tools/services/plugins/dndcp/dnd/dndClipboard.c b/open-vm-tools/services/plugins/dndcp/dnd/dndClipboard.c index 70eefca60..849c6699d 100644 --- a/open-vm-tools/services/plugins/dndcp/dnd/dndClipboard.c +++ b/open-vm-tools/services/plugins/dndcp/dnd/dndClipboard.c @@ -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) {