Use SAL_WARN instead of writing to std::cerr

Change-Id: I28cc30bc4cd0053ced8de0b51e7cdc3ee0a237a5