Skip to content

Commit

Permalink
print errno number
Browse files Browse the repository at this point in the history
  • Loading branch information
lguohan committed Dec 20, 2017
1 parent 446d36d commit 44cf94f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vslib/src/sai_vs_hostintf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void veth2tap_fun(std::shared_ptr<hostif_info_t> info)

if (write(info->tapfd, buffer, size) < 0)
{
SWSS_LOG_ERROR("failed to write to tap device %d", info->tapfd);
SWSS_LOG_ERROR("failed to write to tap device %d, errno %d", info->tapfd, errno);
break;
}
}
Expand Down

0 comments on commit 44cf94f

Please sign in to comment.