Skip to content

Commit

Permalink
add year in the SNTP log.
Browse files Browse the repository at this point in the history
  • Loading branch information
k-takata committed Jan 4, 2012
1 parent 86db8c6 commit 9128895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/sntp/sntp.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,8 +557,8 @@ void Log(HWND hwndSNTP, const char *msg)
char s[160];

GetLocalTime(&st);
wsprintf(s, "%02d/%02d %02d:%02d:%02d ",
st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond);
wsprintf(s, "%04d/%02d/%02d %02d:%02d:%02d ",
st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond);
strcat(s, msg);
strcat(s, "\r\n");

Expand Down

0 comments on commit 9128895

Please sign in to comment.