log: Do not print function name twice during logging

spice_error/spice_warning already print location information
so don't print them twice.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jonathon Jongmsa <jjongsma@redhat.com>
This commit is contained in:
Frediano Ziglio 2017-06-16 17:33:21 +01:00
parent 0903a84b8c
commit a1387f036e
3 changed files with 5 additions and 6 deletions

View File

@ -316,7 +316,7 @@ static void red_record_image(FILE *fd, RedMemSlotInfo *slots, int group_id,
spice_assert(size == qxl->quic.data_size);
break;
default:
spice_error("%s: unknown type %d", __FUNCTION__, qxl->descriptor.type);
spice_error("unknown type %d", qxl->descriptor.type);
}
}
@ -595,7 +595,7 @@ static void red_record_native_drawable(FILE *fd, RedMemSlotInfo *slots, int grou
red_record_composite_ptr(fd, slots, group_id, &qxl->u.composite, flags);
break;
default:
spice_error("%s: unknown type %d", __FUNCTION__, qxl->type);
spice_error("unknown type %d", qxl->type);
break;
};
}
@ -663,7 +663,7 @@ static void red_record_compat_drawable(FILE *fd, RedMemSlotInfo *slots, int grou
red_record_whiteness_ptr(fd, slots, group_id, &qxl->u.whiteness, flags);
break;
default:
spice_error("%s: unknown type %d", __FUNCTION__, qxl->type);
spice_error("unknown type %d", qxl->type);
break;
};
}

View File

@ -1063,7 +1063,7 @@ static QXLCompatDrawable *red_replay_compat_drawable(SpiceReplay *replay, uint32
red_replay_whiteness_ptr(replay, &qxl->u.whiteness, flags);
break;
default:
spice_error("%s: unknown type %d", __FUNCTION__, qxl->type);
spice_error("unknown type %d", qxl->type);
break;
};
return qxl;

View File

@ -2592,8 +2592,7 @@ static int reds_init_socket(const char *addr, int portnr, int family)
}
close(slisten);
}
spice_warning("%s: binding socket to %s:%d failed", __FUNCTION__,
addr, portnr);
spice_warning("binding socket to %s:%d failed", addr, portnr);
freeaddrinfo(res);
return -1;