fix wrong printf format mismatches

As the title said this hunts all printf format mismatches (thanks @notspiff)
Yeah and you need 5 lines of code to silence it, even though it has 0 
effect... which is a bit silly in this case.

On 30-09-14 10:22, Sascha Woo wrote:
>
> In xbmc/peripherals/devices/Peripheral.cpp:
>
> > @@ -55,10 +55,16 @@ CPeripheral::CPeripheral(const PeripheralScanResult& scanResult) :
> >  {
> >    PeripheralTypeTranslator::FormatHexString(scanResult.m_iVendorId, m_strVendorId);
> >    PeripheralTypeTranslator::FormatHexString(scanResult.m_iProductId, m_strProductId);
> > -  m_strFileLocation = StringUtils::Format(scanResult.m_iSequence > 0 ? "peripherals://%s/%s_%d.dev" : "peripherals://%s/%s.dev",
> > -                                          PeripheralTypeTranslator::BusTypeToString(scanResult.m_busType),
> > -                                          scanResult.m_strLocation.c_str(),
> > -                                          scanResult.m_iSequence);
> > +
> > +  if (scanResult.m_iSequence > 0)
> > +    m_strFileLocation = StringUtils::Format("peripherals://%s/%s_%d.dev",
> > +                                            PeripheralTypeTranslator::BusTypeToString(scanResult.m_busType),
> > +                                            scanResult.m_strLocation.c_str(),
> > +                                            scanResult.m_iSequence);
> > +  else
> > +    m_strFileLocation = StringUtils::Format("peripherals://%s/%s.dev",
> > +                                            PeripheralTypeTranslator::BusTypeToString(scanResult.m_busType),
> > +                                            scanResult.m_strLocation.c_str());
>
> every printf format issue in this PR only prints a warning but we 
> don't want such warnings if we can avoid them.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/xbmc/xbmc/pull/5408/files#r18204245>.
>