In getUniqueID(), don't forget to reset formatting on log stream.

Otherwise later log fields start showing up with zero fill, etc.
master
Nat Goodspeed 2012-07-24 07:55:45 -04:00
parent 28c81e92cc
commit fc8d6384b7
1 changed files with 2 additions and 5 deletions

View File

@ -263,12 +263,9 @@ S32 LLMachineID::getUniqueID(unsigned char *unique_id, size_t len)
unsigned byte = unique_id[i];
LL_CONT << std::hex << std::setw(2) << std::setfill('0') << byte;
}
LL_ENDL;
// Reset default output formatting to avoid nasty surprises!
LL_CONT << std::dec << std::setw(0) << std::setfill(' ') << LL_ENDL;
return 1;
}
return 0;
}