kai, if it looks like rice, it might be tape worm.
If it is, one way of dogs getting it, is by swallowing an
infected flea.

Make sure you bring a sample to the vets, with
the white stuff too.