add ack.h and change format of error again

git-svn-id: https://svn.musicpd.org/mpd/trunk@1327 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes
2004-06-04 03:03:48 +00:00
parent fd06660e0b
commit 915af1e093
2 changed files with 18 additions and 2 deletions

View File

@@ -48,13 +48,13 @@ void finishCommands();
#define commandError(fp, error, format, ... ) \
{\
if(current_command) { \
myfprintf(fp, "ACK [%i@%i:%s] " format "\n", \
myfprintf(fp, "ACK [%i@%i] {%s} " format "\n", \
(int)error, command_listNum, \
current_command, ##__VA_ARGS__); \
current_command = NULL; \
} \
else { \
myfprintf(fp, "ACK [%i@%i:] " format "\n", \
myfprintf(fp, "ACK [%i@%i] " format "\n", \
(int)error, command_listNum, \
##__VA_ARGS__); \
} \