Remove unnecessary error from neutrinordp log
This commit is contained in:
@@ -1749,21 +1749,34 @@ lfreerdp_pre_connect(freerdp *instance)
|
||||
LOG_DEVEL(LOG_LEVEL_INFO, "lfreerdp_pre_connect:");
|
||||
mod = ((struct mod_context *)(instance->context))->modi;
|
||||
verifyColorMap(mod);
|
||||
num_chans = 0;
|
||||
index = 0;
|
||||
error = mod->server_query_channel(mod, index, ch_name, &ch_flags);
|
||||
|
||||
while (error == 0)
|
||||
num_chans = mod->server_get_channel_count(mod);
|
||||
if (num_chans < 0)
|
||||
{
|
||||
LOG(LOG_LEVEL_ERROR, "lfreerdp_pre_connect: Can't get channel count");
|
||||
num_chans = 0;
|
||||
}
|
||||
|
||||
for (index = 0 ; index < num_chans; ++index)
|
||||
{
|
||||
num_chans++;
|
||||
LOG_DEVEL(LOG_LEVEL_DEBUG, "lfreerdp_pre_connect: got channel [%s], id [%d], flags [0x%8.8x]",
|
||||
ch_name, index, ch_flags);
|
||||
dst_ch_name = instance->settings->channels[index].name;
|
||||
g_memset(dst_ch_name, 0, 8);
|
||||
g_snprintf(dst_ch_name, 8, "%s", ch_name);
|
||||
instance->settings->channels[index].options = ch_flags;
|
||||
index++;
|
||||
error = mod->server_query_channel(mod, index, ch_name, &ch_flags);
|
||||
if (error == 0)
|
||||
{
|
||||
LOG_DEVEL(LOG_LEVEL_DEBUG, "lfreerdp_pre_connect: "
|
||||
"got channel [%s], id [%d], flags [0x%8.8x]",
|
||||
ch_name, index, ch_flags);
|
||||
dst_ch_name = instance->settings->channels[index].name;
|
||||
g_memset(dst_ch_name, 0, 8);
|
||||
g_snprintf(dst_ch_name, 8, "%s", ch_name);
|
||||
instance->settings->channels[index].options = ch_flags;
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG(LOG_LEVEL_ERROR, "lfreerdp_pre_connect: "
|
||||
"Expected %d channels, got %d",
|
||||
num_chans, index);
|
||||
num_chans = index;
|
||||
}
|
||||
}
|
||||
|
||||
instance->settings->num_channels = num_chans;
|
||||
|
||||
@@ -131,6 +131,7 @@ struct mod
|
||||
int box_right, int box_bottom,
|
||||
int x, int y, char *data, int data_len);
|
||||
int (*server_reset)(struct mod *v, int width, int height, int bpp);
|
||||
int (*server_get_channel_count)(struct mod *v);
|
||||
int (*server_query_channel)(struct mod *v, int index,
|
||||
char *channel_name,
|
||||
int *channel_flags);
|
||||
@@ -194,7 +195,7 @@ struct mod
|
||||
int flags, int frame_id);
|
||||
int (*server_session_info)(struct mod *v, const char *data,
|
||||
int data_bytes);
|
||||
tintptr server_dumby[100 - 45]; /* align, 100 minus the number of server
|
||||
tintptr server_dumby[100 - 46]; /* align, 100 minus the number of server
|
||||
functions above */
|
||||
/* common */
|
||||
tintptr handle; /* pointer to self as long */
|
||||
|
||||
Reference in New Issue
Block a user