sprintf bloginfo odditie

Try using get_bloginfo() instead of bloginfo(). The former returns the value; the latter echoes the value.