Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3c46945

Browse files
knizhnikkelvich
authored andcommitted
Extend error message
1 parenta4a0c6e commit3c46945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎contrib/multimaster/sockhub/sockhub.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ void ShubLoop(Shub* shub)
380380
rc=ShubReadSocketEx(chan,&shub->in_buffer[pos+available],sizeof(ShubMessageHdr)-available,buffer_size-pos-available);
381381
if (rc<sizeof(ShubMessageHdr)-available) {
382382
charbuf[1024];
383-
sprintf(buf,"Failed to read local socket rc=%d, min requested=%ld, max requested=%d, errno=%d",rc,sizeof(ShubMessageHdr)-available,buffer_size-pos-available,errno);
383+
sprintf(buf,"Failed to read local socketchan=%d,rc=%d, min requested=%ld, max requested=%d, errno=%d",chan,rc,sizeof(ShubMessageHdr)-available,buffer_size-pos-available,errno);
384384
shub->params->error_handler(buf,SHUB_RECOVERABLE_ERROR);
385385
//shub->params->error_handler("Failed to read local socket", SHUB_RECOVERABLE_ERROR);
386386
close_socket(shub,i);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp